Class DefaultNotificationJobDelegate

  • All Implemented Interfaces:
    org.apache.syncope.core.provisioning.api.job.JobDelegate, org.apache.syncope.core.provisioning.api.notification.NotificationJobDelegate

    public class DefaultNotificationJobDelegate
    extends Object
    implements org.apache.syncope.core.provisioning.api.notification.NotificationJobDelegate
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.syncope.core.provisioning.api.AuditManager auditManager  
      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.mail.javamail.JavaMailSender mailSender  
      protected org.apache.syncope.core.provisioning.api.notification.NotificationManager notificationManager  
      protected AtomicReference<String> status  
      protected org.apache.syncope.core.persistence.api.dao.TaskDAO taskDAO  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultNotificationJobDelegate​(org.apache.syncope.core.persistence.api.dao.TaskDAO taskDAO, org.springframework.mail.javamail.JavaMailSender mailSender, org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory, org.apache.syncope.core.provisioning.api.AuditManager auditManager, org.apache.syncope.core.provisioning.api.notification.NotificationManager notificationManager)  
    • Field Detail

      • LOG

        protected static final org.slf4j.Logger LOG
      • taskDAO

        protected final org.apache.syncope.core.persistence.api.dao.TaskDAO taskDAO
      • mailSender

        protected final org.springframework.mail.javamail.JavaMailSender mailSender
      • entityFactory

        protected final org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory
      • auditManager

        protected final org.apache.syncope.core.provisioning.api.AuditManager auditManager
      • notificationManager

        protected final org.apache.syncope.core.provisioning.api.notification.NotificationManager notificationManager
      • interrupt

        protected boolean interrupt
      • interrupted

        protected boolean interrupted
    • Constructor Detail

      • DefaultNotificationJobDelegate

        public DefaultNotificationJobDelegate​(org.apache.syncope.core.persistence.api.dao.TaskDAO taskDAO,
                                              org.springframework.mail.javamail.JavaMailSender mailSender,
                                              org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory,
                                              org.apache.syncope.core.provisioning.api.AuditManager auditManager,
                                              org.apache.syncope.core.provisioning.api.notification.NotificationManager notificationManager)
    • Method Detail

      • currentStatus

        public String currentStatus()
        Specified by:
        currentStatus in interface org.apache.syncope.core.provisioning.api.job.JobDelegate
      • 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
      • executeSingle

        @Transactional
        public org.apache.syncope.core.persistence.api.entity.task.TaskExec executeSingle​(org.apache.syncope.core.persistence.api.entity.task.NotificationTask task,
                                                                                          String executor)
        Specified by:
        executeSingle in interface org.apache.syncope.core.provisioning.api.notification.NotificationJobDelegate
      • execute

        @Transactional
        public void execute​(String executor)
                     throws org.quartz.JobExecutionException
        Specified by:
        execute in interface org.apache.syncope.core.provisioning.api.notification.NotificationJobDelegate
        Throws:
        org.quartz.JobExecutionException
      • hasToBeRegistered

        protected static boolean hasToBeRegistered​(org.apache.syncope.core.persistence.api.entity.task.TaskExec execution)
      • handleRetries

        protected void handleRetries​(org.apache.syncope.core.persistence.api.entity.task.TaskExec execution)