Class DefaultReportJobDelegate
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.job.report.DefaultReportJobDelegate
-
- All Implemented Interfaces:
org.apache.syncope.core.provisioning.api.job.JobDelegate
,org.apache.syncope.core.provisioning.api.job.report.ReportJobDelegate
public class DefaultReportJobDelegate extends Object implements org.apache.syncope.core.provisioning.api.job.report.ReportJobDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.syncope.core.persistence.api.entity.EntityFactory
entityFactory
protected boolean
interrupt
protected boolean
interrupted
protected static org.slf4j.Logger
LOG
protected org.springframework.context.ApplicationEventPublisher
publisher
protected org.apache.syncope.core.persistence.api.entity.Report
report
protected org.apache.syncope.core.persistence.api.dao.ReportDAO
reportDAO
protected org.apache.syncope.core.provisioning.api.data.ReportDataBinder
reportDataBinder
protected org.apache.syncope.core.persistence.api.dao.ReportExecDAO
reportExecDAO
protected static SAXTransformerFactory
TRANSFORMER_FACTORY
-
Constructor Summary
Constructors Constructor Description DefaultReportJobDelegate(org.apache.syncope.core.persistence.api.dao.ReportDAO reportDAO, org.apache.syncope.core.persistence.api.dao.ReportExecDAO reportExecDAO, org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory, org.apache.syncope.core.provisioning.api.data.ReportDataBinder reportDataBinder, org.springframework.context.ApplicationEventPublisher publisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(String reportKey, String executor)
void
interrupt()
boolean
isInterrupted()
protected void
setStatus(String status)
Sets status.
-
-
-
Field Detail
-
LOG
protected static final org.slf4j.Logger LOG
-
TRANSFORMER_FACTORY
protected static final SAXTransformerFactory TRANSFORMER_FACTORY
-
reportDAO
protected final org.apache.syncope.core.persistence.api.dao.ReportDAO reportDAO
-
reportExecDAO
protected final org.apache.syncope.core.persistence.api.dao.ReportExecDAO reportExecDAO
-
entityFactory
protected final org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory
-
reportDataBinder
protected final org.apache.syncope.core.provisioning.api.data.ReportDataBinder reportDataBinder
-
publisher
protected final org.springframework.context.ApplicationEventPublisher publisher
-
report
protected org.apache.syncope.core.persistence.api.entity.Report report
-
interrupt
protected boolean interrupt
-
interrupted
protected boolean interrupted
-
-
Constructor Detail
-
DefaultReportJobDelegate
public DefaultReportJobDelegate(org.apache.syncope.core.persistence.api.dao.ReportDAO reportDAO, org.apache.syncope.core.persistence.api.dao.ReportExecDAO reportExecDAO, org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory, org.apache.syncope.core.provisioning.api.data.ReportDataBinder reportDataBinder, org.springframework.context.ApplicationEventPublisher publisher)
-
-
Method Detail
-
setStatus
protected void setStatus(String status)
Sets status. Updating job status is done via an event publishing mechanism to allow underlying updates to be done in separate threads, and not as part of the current transaction.- Parameters:
status
- the status
-
interrupt
public void interrupt()
- Specified by:
interrupt
in interfaceorg.apache.syncope.core.provisioning.api.job.JobDelegate
-
isInterrupted
public boolean isInterrupted()
- Specified by:
isInterrupted
in interfaceorg.apache.syncope.core.provisioning.api.job.JobDelegate
-
-