Class AbstractReportJobDelegate

    • Constructor Detail

      • AbstractReportJobDelegate

        public AbstractReportJobDelegate()
    • Method Detail

      • setStatus

        protected void setStatus​(String status)
      • execute

        @Transactional
        public void execute​(String reportKey,
                            boolean dryRun,
                            org.quartz.JobExecutionContext context)
                     throws org.quartz.JobExecutionException
        Description copied from interface: ReportJobDelegate
        Executes a Quartz Job to run the given Report.
        Specified by:
        execute in interface ReportJobDelegate
        Parameters:
        reportKey - Report key to run
        dryRun - indicates if execution shall be simulated with no actual changes
        context - Quartz' execution context, can be used to pass parameters to the job
        Throws:
        org.quartz.JobExecutionException - if anything goes wrong
      • doExecute

        protected abstract String doExecute​(boolean dryRun,
                                            OutputStream os,
                                            String executor,
                                            org.quartz.JobExecutionContext context)
                                     throws org.quartz.JobExecutionException
        The actual execution, delegated to child classes.
        Parameters:
        dryRun - whether to actually touch the data
        os - where to stream report execution's data
        executor - the user executing this report
        context - Quartz' execution context, can be used to pass parameters to the job
        Returns:
        the report execution status to be set
        Throws:
        org.quartz.JobExecutionException - if anything goes wrong