Interface ReportService

    • Method Detail

      • getFormats

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

        void render​(String ReportId,
                    String location,
                    ReportFormat format,
                    OutputStream outputStream)
             throws ReportException
        This method renders the report into a given output stream.
        Parameters:
        ReportId - 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
        Throws:
        ReportException - if any.
      • runAndRender

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

        ReportParameters getParameters​(String ReportId)
                                throws ReportException
        This method retrieves the runtime parameters taken by the report
        Parameters:
        ReportId - a String object.
        Returns:
        a ReportParameters object containing the parameters taken by the report
        Throws:
        ReportException