Class AbstractNotificationJobDelegate
java.lang.Object
org.apache.syncope.core.provisioning.java.job.notification.AbstractNotificationJobDelegate
- All Implemented Interfaces:
JobDelegate,NotificationJobDelegate
- Direct Known Subclasses:
MailNotificationJobDelegate
public abstract class AbstractNotificationJobDelegate
extends Object
implements NotificationJobDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AuditManagerprotected static final Loggerprotected final NotificationManagerprotected final ApplicationEventPublisherprotected final TaskDAOprotected final TaskUtilsFactory -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractNotificationJobDelegate(TaskDAO taskDAO, TaskUtilsFactory taskUtilsFactory, AuditManager auditManager, NotificationManager notificationManager, ApplicationEventPublisher publisher) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteSingle(NotificationTask task, String executor) protected voidhandleRetries(TaskExec<NotificationTask> execution) protected static booleanhasToBeRegistered(TaskExec<NotificationTask> execution) protected abstract voidnotify(String to, NotificationTask task, TaskExec<NotificationTask> execution) protected void
-
Field Details
-
LOG
-
taskDAO
-
taskUtilsFactory
-
auditManager
-
notificationManager
-
publisher
-
-
Constructor Details
-
AbstractNotificationJobDelegate
protected AbstractNotificationJobDelegate(TaskDAO taskDAO, TaskUtilsFactory taskUtilsFactory, AuditManager auditManager, NotificationManager notificationManager, ApplicationEventPublisher publisher)
-
-
Method Details
-
setStatus
-
notify
protected abstract void notify(String to, NotificationTask task, TaskExec<NotificationTask> execution) throws Exception - Throws:
Exception
-
executeSingle
@Transactional public TaskExec<NotificationTask> executeSingle(NotificationTask task, String executor) - Specified by:
executeSinglein interfaceNotificationJobDelegate
-
execute
- Specified by:
executein interfaceNotificationJobDelegate
-
hasToBeRegistered
-
handleRetries
-