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 NotificationDataBinderbinderprotected JobManagerjobManagerprotected JobStatusDAOjobStatusDAOprotected NotificationDAOnotificationDAOprotected SchedulerFactoryBeanscheduler-
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 voidactionJob(JobAction action)NotificationTOcreate(NotificationTO notificationTO)NotificationTOdelete(String key)protected voiddoActionJob(org.quartz.JobKey jobKey, JobAction action)protected List<JobTO>doListJobs(boolean includeCustom)JobTOgetJob()protected JobTOgetJobTO(org.quartz.JobKey jobKey, boolean includeCustom)protected Triple<JobType,String,String>getReference(org.quartz.JobKey jobKey)List<NotificationTO>list()NotificationTOread(String key)protected NotificationTOresolveReference(Method method, Object... args)NotificationTOupdate(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:
resolveReferencein 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)
-
-