Package org.apache.syncope.core.logic
Class AbstractExecutableLogic<T extends EntityTO>
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<T>
-
- org.apache.syncope.core.logic.AbstractExecutableLogic<T>
-
- Direct Known Subclasses:
ReportLogic
,TaskLogic
public abstract class AbstractExecutableLogic<T extends EntityTO> extends AbstractTransactionalLogic<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected JobManager
jobManager
protected JobStatusDAO
jobStatusDAO
protected SchedulerFactoryBean
scheduler
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description AbstractExecutableLogic(JobManager jobManager, SchedulerFactoryBean scheduler, JobStatusDAO jobStatusDAO)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
actionJob(String key, JobAction action)
abstract ExecTO
deleteExecution(String executionKey)
abstract List<BatchResponseItem>
deleteExecutions(String key, OffsetDateTime before, OffsetDateTime after)
protected void
doActionJob(org.quartz.JobKey jobKey, JobAction action)
protected List<JobTO>
doListJobs(boolean includeCustom)
abstract ExecTO
execute(ExecSpecs specs)
abstract JobTO
getJob(String key)
protected JobTO
getJobTO(org.quartz.JobKey jobKey, boolean includeCustom)
protected abstract Triple<JobType,String,String>
getReference(org.quartz.JobKey jobKey)
abstract Pair<Integer,List<ExecTO>>
listExecutions(String key, OffsetDateTime before, OffsetDateTime after, int page, int size, List<OrderByClause> orderByClauses)
abstract List<JobTO>
listJobs()
abstract List<ExecTO>
listRecentExecutions(int max)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference, resolveReference
-
-
-
-
Field Detail
-
jobManager
protected final JobManager jobManager
-
scheduler
protected final SchedulerFactoryBean scheduler
-
jobStatusDAO
protected final JobStatusDAO jobStatusDAO
-
-
Constructor Detail
-
AbstractExecutableLogic
public AbstractExecutableLogic(JobManager jobManager, SchedulerFactoryBean scheduler, JobStatusDAO jobStatusDAO)
-
-
Method Detail
-
listExecutions
public abstract Pair<Integer,List<ExecTO>> listExecutions(String key, OffsetDateTime before, OffsetDateTime after, int page, int size, List<OrderByClause> orderByClauses)
-
deleteExecutions
public abstract List<BatchResponseItem> deleteExecutions(String key, OffsetDateTime before, OffsetDateTime after)
-
getReference
protected abstract Triple<JobType,String,String> getReference(org.quartz.JobKey jobKey)
-
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)
-
-