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

public class ReportGenerator extends ServiceConfig
Generate the component controllers of the screen
  • Constructor Details

    • ReportGenerator

      public ReportGenerator(ReportDesigner reportDesigner, com.almis.ade.api.ADE adeAPI, BaseConfigProperties baseConfigProperties)
      Autowired constructor
      Parameters:
      reportDesigner - Report designer
      adeAPI - ADE API
      baseConfigProperties - Base config properties
  • Method Details

    • generateScreenReportFiles

      public List<FileData> generateScreenReportFiles(Screen screen) throws AWException
      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

      public ServiceData downloadScreenReportFiles(List<FileData> reportFiles) throws AWException
      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 builder
      format - format
      fileName - file name
      basePath - base path
      Returns:
      future with generate report action