Class 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 Detail

      • 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 Detail

      • generateScreenReport

        public ServiceData generateScreenReport​(Screen screen)
                                         throws AWException
        Generate a report and return client actions to download it
        Parameters:
        screen - Screen to generate
        Returns:
        Service data with the actions to download the generated reports
        Throws:
        AWException - Error generating report
      • generateReportFormat

        public ClientAction generateReportFormat​(com.almis.ade.api.fluid.engine.generic.TemplateExporterBuilderService builderService,
                                                 String format,
                                                 String fileName,
                                                 String basePath)
                                          throws AWException
        Generate report format (Async)
        Parameters:
        builderService - template export builder
        format - format
        fileName - file name
        basePath - base path
        Returns:
        future with generate report action
        Throws:
        AWException - AWE exception