Class AvailabilityReportService

    • Constructor Detail

      • AvailabilityReportService

        public AvailabilityReportService()
    • Method Detail

      • render

        public void render​(String id,
                           String location,
                           ReportFormat format,
                           OutputStream outputStream)
        This method renders the report into a given output stream.
        Specified by:
        render in interface ReportService
        Parameters:
        id - reportId as defined in database-reports.xml
        location - location of the report on disk
        format - format to render the report
        outputStream - stream to render the resulting report
      • getFormats

        public List<ReportFormat> getFormats​(String id)
        This method provides a list of formats supported by the report
        Specified by:
        getFormats in interface ReportService
        Parameters:
        id - reportId as defined in database-reports.xml
        Returns:
        a list of supported formats
      • run

        public String run​(Map<String,​Object> reportParms,
                          String reportId)
        This method runs the report
        Specified by:
        run in interface ReportService
        Parameters:
        reportParms - hashmap of parameters to be provided at runtime
        reportId - reportId as defined in database-reports.xml
        Returns:
        a String object.
      • runAndRender

        public void runAndRender​(Map<String,​Object> reportParms,
                                 String reportId,
                                 ReportFormat format,
                                 OutputStream outputStream)
        This method runs the report and renders in into the given output stream with no intermediate steps
        Specified by:
        runAndRender in interface ReportService
        Parameters:
        reportParms - a HashMap object.
        reportId - reportId as defined in database-reports.xml
        format - format to render the report
        outputStream - stream to render the resulting report
      • getParameters

        public ReportParameters getParameters​(String ReportId)
        This method retrieves the runtime parameters taken by the report
        Specified by:
        getParameters in interface ReportService
        Parameters:
        ReportId - a String object.
        Returns:
        a ReportParameters object containing the parameters taken by the report