Package org.apache.syncope.core.logic
Class NotificationLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<T>
-
- org.apache.syncope.core.logic.NotificationLogic
-
public class NotificationLogic extends AbstractTransactionalLogic<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected NotificationDataBinder
binder
protected JobManager
jobManager
protected JobStatusDAO
jobStatusDAO
protected NotificationDAO
notificationDAO
protected SchedulerFactoryBean
scheduler
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description NotificationLogic(JobManager jobManager, SchedulerFactoryBean scheduler, JobStatusDAO jobStatusDAO, NotificationDAO notificationDAO, NotificationDataBinder binder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionJob(JobAction action)
NotificationTO
create(NotificationTO notificationTO)
NotificationTO
delete(String key)
protected void
doActionJob(org.quartz.JobKey jobKey, JobAction action)
protected List<JobTO>
doListJobs(boolean includeCustom)
JobTO
getJob()
protected JobTO
getJobTO(org.quartz.JobKey jobKey, boolean includeCustom)
protected Triple<JobType,String,String>
getReference(org.quartz.JobKey jobKey)
List<NotificationTO>
list()
NotificationTO
read(String key)
protected NotificationTO
resolveReference(Method method, Object... args)
NotificationTO
update(NotificationTO notificationTO)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
notificationDAO
protected final NotificationDAO notificationDAO
-
binder
protected final NotificationDataBinder binder
-
jobManager
protected final JobManager jobManager
-
scheduler
protected final SchedulerFactoryBean scheduler
-
jobStatusDAO
protected final JobStatusDAO jobStatusDAO
-
-
Constructor Detail
-
NotificationLogic
public NotificationLogic(JobManager jobManager, SchedulerFactoryBean scheduler, JobStatusDAO jobStatusDAO, NotificationDAO notificationDAO, NotificationDataBinder binder)
-
-
Method Detail
-
read
@PreAuthorize("hasRole(\'NOTIFICATION_READ\')") @Transactional(readOnly=true) public NotificationTO read(String key)
-
list
@PreAuthorize("hasRole(\'NOTIFICATION_LIST\')") @Transactional(readOnly=true) public List<NotificationTO> list()
-
create
@PreAuthorize("hasRole(\'NOTIFICATION_CREATE\')") public NotificationTO create(NotificationTO notificationTO)
-
update
@PreAuthorize("hasRole(\'NOTIFICATION_UPDATE\')") public NotificationTO update(NotificationTO notificationTO)
-
delete
@PreAuthorize("hasRole(\'NOTIFICATION_DELETE\')") public NotificationTO delete(String key)
-
getJob
@PreAuthorize("hasRole(\'NOTIFICATION_LIST\')") public JobTO getJob()
-
actionJob
@PreAuthorize("hasRole(\'NOTIFICATION_EXECUTE\')") public void actionJob(JobAction action)
-
resolveReference
protected NotificationTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReference
in classAbstractLogic<NotificationTO>
- Throws:
UnresolvedReferenceException
-
getJobTO
protected JobTO getJobTO(org.quartz.JobKey jobKey, boolean includeCustom) throws org.quartz.SchedulerException
- Throws:
org.quartz.SchedulerException
-
doActionJob
protected void doActionJob(org.quartz.JobKey jobKey, JobAction action)
-
-