Class LargeReportExecutionVetoer
java.lang.Object
net.datenwerke.rs.incubator.service.outputformatauth.hookers.LargeReportExecutionVetoer
- All Implemented Interfaces:
Hook,ReportExecutionNotificationHook
-
Constructor Summary
ConstructorsConstructorDescriptionLargeReportExecutionVetoer(TableReportUtils tableReportUtils, <any> configServiceProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoVetoReportExecution(Report report, ParameterSet parameterSet, User user, String outputFormat, ReportExecutionConfig[] configs) Called before the execution of a report and meant to allow to veto (stop) that execution.voidnotifyOfReportExecution(Report report, ParameterSet parameterSet, User user, String outputFormat, ReportExecutionConfig[] configs) Called before a report is about to be executed.voidnotifyOfReportsSuccessfulExecution(CompiledReport compiledReport, Report report, ParameterSet parameterSet, User user, String outputFormat, ReportExecutionConfig[] configs) Called after successful completion of a report execution.voidnotifyOfReportsUnsuccessfulExecution(ReportExecutorException e, Report report, ParameterSet parameterSet, User user, String outputFormat, ReportExecutionConfig[] configs) Called after an unsuccessful execution of a report.
-
Constructor Details
-
LargeReportExecutionVetoer
-
-
Method Details
-
notifyOfReportExecution
public void notifyOfReportExecution(Report report, ParameterSet parameterSet, User user, String outputFormat, ReportExecutionConfig[] configs) throws ReportExecutorException Description copied from interface:ReportExecutionNotificationHookCalled before a report is about to be executed. This method should not throw any exceptions and be used only for notifaction purposes. If you want to stop the execution of a report, use theReportExecutionNotificationHook.doVetoReportExecution(Report, ParameterSet, User, String, ReportExecutionConfig[])method instead.- Specified by:
notifyOfReportExecutionin interfaceReportExecutionNotificationHook- Parameters:
report-parameterSet-user-outputFormat-configs-- Throws:
ReportExecutorException
-
notifyOfReportsSuccessfulExecution
public void notifyOfReportsSuccessfulExecution(CompiledReport compiledReport, Report report, ParameterSet parameterSet, User user, String outputFormat, ReportExecutionConfig[] configs) Description copied from interface:ReportExecutionNotificationHookCalled after successful completion of a report execution.- Specified by:
notifyOfReportsSuccessfulExecutionin interfaceReportExecutionNotificationHook- Parameters:
compiledReport-report-parameterSet-user-outputFormat-configs-
-
notifyOfReportsUnsuccessfulExecution
public void notifyOfReportsUnsuccessfulExecution(ReportExecutorException e, Report report, ParameterSet parameterSet, User user, String outputFormat, ReportExecutionConfig[] configs) Description copied from interface:ReportExecutionNotificationHookCalled after an unsuccessful execution of a report.- Specified by:
notifyOfReportsUnsuccessfulExecutionin interfaceReportExecutionNotificationHook- Parameters:
e-report-parameterSet-user-outputFormat-configs-
-
doVetoReportExecution
public void doVetoReportExecution(Report report, ParameterSet parameterSet, User user, String outputFormat, ReportExecutionConfig[] configs) throws ReportExecutorException Description copied from interface:ReportExecutionNotificationHookCalled before the execution of a report and meant to allow to veto (stop) that execution. In order to stop an execution, throw aReportExecutorException.- Specified by:
doVetoReportExecutionin interfaceReportExecutionNotificationHook- Parameters:
report-parameterSet-user-outputFormat-configs-- Throws:
ReportExecutorException
-