Class DefaultNotificationJobDelegate
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.job.notification.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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
currentStatus()
void
execute(String executor)
org.apache.syncope.core.persistence.api.entity.task.TaskExec
executeSingle(org.apache.syncope.core.persistence.api.entity.task.NotificationTask task, String executor)
protected void
handleRetries(org.apache.syncope.core.persistence.api.entity.task.TaskExec execution)
protected static boolean
hasToBeRegistered(org.apache.syncope.core.persistence.api.entity.task.TaskExec execution)
void
interrupt()
boolean
isInterrupted()
-
-
-
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
-
status
protected final AtomicReference<String> status
-
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 interfaceorg.apache.syncope.core.provisioning.api.job.JobDelegate
-
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
-
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 interfaceorg.apache.syncope.core.provisioning.api.notification.NotificationJobDelegate
-
execute
@Transactional public void execute(String executor) throws org.quartz.JobExecutionException
- Specified by:
execute
in interfaceorg.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)
-
-