org.opennms.reporting.core.svclayer
Interface ReportServiceLocator

All Known Implementing Classes:
DefaultReportServiceLocator

public interface ReportServiceLocator

This class provides a simple mechanism for returning the ReportService bean for a given reportId

Version:
$Id: $
Author:
Jonathan Sartin

Method Summary
 ReportService getReportService(String reportServiceName)
          This method is used to retrieve the ReportService bean associated with
 ReportService getReportServiceForId(String reportId)
          This method is used to retrieve the ReportService bean associated with a report Id
 

Method Detail

getReportService

ReportService getReportService(String reportServiceName)
                               throws ReportServiceLocatorException
This method is used to retrieve the ReportService bean associated with

Parameters:
reportServiceName - the name of the report service as as defined in database-reports.xml
Returns:
the ReportService bean used to run this report
Throws:
ReportServiceLocatorException - if any.

getReportServiceForId

ReportService getReportServiceForId(String reportId)
                                    throws ReportServiceLocatorException
This method is used to retrieve the ReportService bean associated with a report Id

Parameters:
reportId - the reportID defined in database-reports.xml
Returns:
the ReportService bean used to run this report
Throws:
ReportServiceLocatorException - if any.


Copyright © 2011. All Rights Reserved.