@Component public class NotificationLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected JobManager |
jobManager |
protected JobStatusDAO |
jobStatusDAO |
protected static org.slf4j.Logger |
LOG |
protected SchedulerFactoryBean |
scheduler |
Constructor and Description |
---|
NotificationLogic() |
Modifier and Type | Method and 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) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected NotificationTO |
resolveReference(Method method,
Object... args) |
NotificationTO |
update(NotificationTO notificationTO) |
@Autowired protected JobManager jobManager
@Autowired protected SchedulerFactoryBean scheduler
@Autowired protected JobStatusDAO jobStatusDAO
protected static final org.slf4j.Logger LOG
@PreAuthorize(value="hasRole(\'NOTIFICATION_READ\')") @Transactional(readOnly=true) public NotificationTO read(String key)
@PreAuthorize(value="hasRole(\'NOTIFICATION_LIST\')") @Transactional(readOnly=true) public List<NotificationTO> list()
@PreAuthorize(value="hasRole(\'NOTIFICATION_CREATE\')") public NotificationTO create(NotificationTO notificationTO)
@PreAuthorize(value="hasRole(\'NOTIFICATION_UPDATE\')") public NotificationTO update(NotificationTO notificationTO)
@PreAuthorize(value="hasRole(\'NOTIFICATION_DELETE\')") public NotificationTO delete(String key)
@PreAuthorize(value="hasRole(\'NOTIFICATION_LIST\')") public JobTO getJob()
@PreAuthorize(value="hasRole(\'NOTIFICATION_EXECUTE\')") public void actionJob(JobAction action)
protected NotificationTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
UnresolvedReferenceException
protected JobTO getJobTO(org.quartz.JobKey jobKey, boolean includeCustom) throws org.quartz.SchedulerException
org.quartz.SchedulerException
protected void doActionJob(org.quartz.JobKey jobKey, JobAction action)
public T resolveBeanReference(Method method, Object... args) throws UnresolvedReferenceException
method
- method.args
- method arguments.UnresolvedReferenceException
- in case of failures, read-only methods and unresolved bean.Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.