Class AbstractReportJobDelegate
java.lang.Object
org.apache.syncope.core.provisioning.java.job.report.AbstractReportJobDelegate
- All Implemented Interfaces:
JobDelegate,ReportJobDelegate,StoppableJobDelegate
- Direct Known Subclasses:
SampleReportJobDelegate
public abstract class AbstractReportJobDelegate
extends Object
implements ReportJobDelegate, StoppableJobDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuditManagerAudit manager.protected ReportConfprotected EntityFactoryprotected static final Loggerprotected NotificationManagerNotification manager.protected ApplicationEventPublisherprotected ReportThe actual report to be executed.protected ReportDAOReport DAO.protected SecurityPropertiesprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringdoExecute(OutputStream os, JobExecutionContext context) The actual execution, delegated to child classes.voidexecute(String reportKey, JobExecutionContext context) Executes a Job to run the given Report.voidsetConf(ReportConf conf) Optional configuration.protected voidvoidstop()Request the current Job to stop the execution.
-
Field Details
-
LOG
-
securityProperties
-
report
The actual report to be executed. -
conf
-
reportDAO
Report DAO. -
entityFactory
-
notificationManager
Notification manager. -
auditManager
Audit manager. -
publisher
-
stopRequested
protected volatile boolean stopRequested
-
-
Constructor Details
-
AbstractReportJobDelegate
public AbstractReportJobDelegate()
-
-
Method Details
-
setConf
Description copied from interface:ReportJobDelegateOptional configuration.- Specified by:
setConfin interfaceReportJobDelegate- Parameters:
conf- configuration
-
setStatus
-
stop
public void stop()Description copied from interface:StoppableJobDelegateRequest the current Job to stop the execution.- Specified by:
stopin interfaceStoppableJobDelegate
-
execute
@Transactional public void execute(String reportKey, JobExecutionContext context) throws JobExecutionException Description copied from interface:ReportJobDelegateExecutes a Job to run the given Report.- Specified by:
executein interfaceReportJobDelegate- Parameters:
reportKey- Report key to runcontext- execution context, can be used to pass parameters to the job- Throws:
JobExecutionException- if anything goes wrong
-
doExecute
protected abstract String doExecute(OutputStream os, JobExecutionContext context) throws JobExecutionException The actual execution, delegated to child classes.- Parameters:
os- where to stream report execution's datacontext- job execution context, can be used to pass parameters to the job- Returns:
- the report execution status to be set
- Throws:
JobExecutionException- if anything goes wrong
-