Class AgingBalanceReportActionHandler

    • Constructor Detail

      • AgingBalanceReportActionHandler

        public AgingBalanceReportActionHandler()
    • Method Detail

      • getReportData

        protected net.sf.jasperreports.engine.JRDataSource getReportData​(Map<String,​Object> parameters)
        Description copied from class: BaseReportActionHandler
        Get the data to pass to the report generation method. Override this method to put logic for getting the data. The map received as argument contains parameters that can be used to create some logic to build the report data
        Overrides:
        getReportData in class BaseReportActionHandler
        Parameters:
        parameters - map that contains the parameters of the HTTP request and the parameters that will be sent to the jasper report
        Returns:
        a JRDataSource object containing the report data
      • getReportTemplatePath

        protected String getReportTemplatePath​(ReportingUtils.ExportType expType,
                                               ReportDefinition report,
                                               org.codehaus.jettison.json.JSONObject jsonContent)
                                        throws org.codehaus.jettison.json.JSONException
        Description copied from class: BaseReportActionHandler
        Get the PDF, XLS or HTML template path from the Report Definition. Override this method to add custom logic to get report template paths.
        Overrides:
        getReportTemplatePath in class BaseReportActionHandler
        Parameters:
        expType - The export type.
        report - The Report Definition.
        jsonContent - JSONObject with the values set in the filter parameters, used by the classes extending this one when generating reports which use more than one template. In that case, the selection of the template can be done based on the values of the parameters present in this JSONObject.
        Returns:
        The template path.
        Throws:
        org.codehaus.jettison.json.JSONException
      • addAdditionalParameters

        protected void addAdditionalParameters​(ReportDefinition report,
                                               org.codehaus.jettison.json.JSONObject jsonContent,
                                               Map<String,​Object> parameters)
        Description copied from class: BaseReportActionHandler
        Override this method to put additional parameters to send to the Jasper Report template. Process Definition filter parameters are automatically added.
        Overrides:
        addAdditionalParameters in class BaseReportActionHandler
        Parameters:
        report - the Process Definition of the Report
        jsonContent - values set in the filter parameters
        parameters - the current Parameter Map that it is send to the Jasper Report.