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
    Author:
    Jonathan Sartin
    • Method Detail

      • getReportService

        ReportService getReportService​(java.lang.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​(java.lang.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.