Package com.almis.awe.service.report
Class ReportGenerator
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.report.ReportGenerator
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Generate the component controllers of the screen
-
Constructor Summary
ConstructorsConstructorDescriptionReportGenerator
(ReportDesigner reportDesigner, com.almis.ade.api.ADE adeAPI, BaseConfigProperties baseConfigProperties) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptiondownloadScreenReportFiles
(List<FileData> reportFiles) Generate a report and return client actions to download itgenerateReportFormat
(com.almis.ade.api.fluid.engine.generic.TemplateExporterBuilder builderService, String format, String fileName, String basePath) Generate report format (Async)generateScreenReportFiles
(Screen screen) Generate a report and return client actions to download itMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
ReportGenerator
public ReportGenerator(ReportDesigner reportDesigner, com.almis.ade.api.ADE adeAPI, BaseConfigProperties baseConfigProperties) Autowired constructor- Parameters:
reportDesigner
- Report designeradeAPI
- ADE APIbaseConfigProperties
- Base config properties
-
-
Method Details
-
generateScreenReportFiles
Generate a report and return client actions to download it- Parameters:
screen
- Screen to generate- Returns:
- List of file data
- Throws:
AWException
- Error generating report
-
downloadScreenReportFiles
Generate a report and return client actions to download it- Parameters:
reportFiles
- Report files to download- Returns:
- Service data with the actions to download the generated reports
- Throws:
AWException
- Error generating report
-
generateReportFormat
public FileData generateReportFormat(com.almis.ade.api.fluid.engine.generic.TemplateExporterBuilder builderService, String format, String fileName, String basePath) Generate report format (Async)- Parameters:
builderService
- template export builderformat
- formatfileName
- file namebasePath
- base path- Returns:
- future with generate report action
-