Class 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  
      • Fields inherited from interface org.apache.syncope.core.provisioning.api.job.JobDelegate

        OPERATION_ID
    • 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)  
    • Field Detail

      • LOG

        protected static final org.slf4j.Logger LOG
      • 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 interface org.apache.syncope.core.provisioning.api.job.JobDelegate
      • isInterrupted

        public boolean isInterrupted()
        Specified by:
        isInterrupted in interface org.apache.syncope.core.provisioning.api.job.JobDelegate
      • execute

        @Transactional
        public void execute​(String reportKey,
                            String executor)
                     throws org.quartz.JobExecutionException
        Specified by:
        execute in interface org.apache.syncope.core.provisioning.api.job.report.ReportJobDelegate
        Throws:
        org.quartz.JobExecutionException