Class AgingBalanceReportActionHandler
- java.lang.Object
-
- org.openbravo.client.kernel.BaseActionHandler
-
- org.openbravo.client.application.process.BaseProcessActionHandler
-
- org.openbravo.client.application.process.FileExportActionHandler
-
- org.openbravo.client.application.report.BaseReportActionHandler
-
- org.openbravo.common.actionhandler.AgingBalanceReportActionHandler
-
- All Implemented Interfaces:
ActionHandler
public class AgingBalanceReportActionHandler extends BaseReportActionHandler
- Author:
- Nono Carballo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openbravo.client.application.process.FileExportActionHandler
FileExportActionHandler.FileAction
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.application.report.BaseReportActionHandler
JASPER_REPORT_PARAMETERS
-
Fields inherited from class org.openbravo.client.application.process.BaseProcessActionHandler
PARAM_FILE_CONTENT, PARAM_FILE_NAME, PARAM_FILE_SIZE, PARAM_MULTIPART_VALUES
-
-
Constructor Summary
Constructors Constructor Description AgingBalanceReportActionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAdditionalParameters(ReportDefinition report, org.codehaus.jettison.json.JSONObject jsonContent, Map<String,Object> parameters)
Override this method to put additional parameters to send to the Jasper Report template.protected org.codehaus.jettison.json.JSONObject
doExecute(Map<String,Object> parameters, String content)
protected ConnectionProvider
getReportConnectionProvider()
Get the connection provider to use in report generation.protected net.sf.jasperreports.engine.JRDataSource
getReportData(Map<String,Object> parameters)
Get the data to pass to the report generation method.protected String
getReportTemplatePath(ReportingUtils.ExportType expType, ReportDefinition report, org.codehaus.jettison.json.JSONObject jsonContent)
Get the PDF, XLS or HTML template path from the Report Definition.-
Methods inherited from class org.openbravo.client.application.report.BaseReportActionHandler
addAditionalParameters, addAditionalRecordInfo, doGenerateFile, doGenerateReport, doGenerateReport, doValidations, doValidations, generateFileToDownload, getAdditionalResponseActions, getDownloadAction, getDownloadFileName, isCompilingSubreports, isValidDownloadFileType
-
Methods inherited from class org.openbravo.client.application.process.FileExportActionHandler
execute, uploadAttachment
-
Methods inherited from class org.openbravo.client.application.process.BaseProcessActionHandler
execute, extractParametersFromRequest, extractRequestContent, fixRequestMap, getResponseBuilder, hasAccess
-
Methods inherited from class org.openbravo.client.kernel.BaseActionHandler
fixRequestMap, writeResponse
-
-
-
-
Method Detail
-
doExecute
protected org.codehaus.jettison.json.JSONObject doExecute(Map<String,Object> parameters, String content)
- Overrides:
doExecute
in classFileExportActionHandler
-
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 classBaseReportActionHandler
- 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
-
getReportConnectionProvider
protected ConnectionProvider getReportConnectionProvider()
Description copied from class:BaseReportActionHandler
Get the connection provider to use in report generation. Override this method to put logic for getting the connection provider- Overrides:
getReportConnectionProvider
in classBaseReportActionHandler
- Returns:
- the ConnectionProvider to use during the report generation
-
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 classBaseReportActionHandler
- 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 classBaseReportActionHandler
- Parameters:
report
- the Process Definition of the ReportjsonContent
- values set in the filter parametersparameters
- the current Parameter Map that it is send to the Jasper Report.
-
-