Package org.apache.syncope.core.logic
Class TaskLogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<TaskTO>
org.apache.syncope.core.logic.AbstractTransactionalLogic<TaskTO>
org.apache.syncope.core.logic.AbstractExecutableLogic<TaskTO>
org.apache.syncope.core.logic.TaskLogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected final TaskDataBinder
protected final JobManager
protected final JobStatusDAO
protected final NotificationDAO
protected final NotificationJobDelegate
protected final ExternalResourceDAO
protected final SyncopeTaskScheduler
protected final TaskDAO
protected final TaskExecDAO
protected final PropagationTaskExecutor
protected final TaskUtilsFactory
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionTaskLogic
(JobManager jobManager, SyncopeTaskScheduler scheduler, JobStatusDAO jobStatusDAO, TaskDAO taskDAO, TaskExecDAO taskExecDAO, ExternalResourceDAO resourceDAO, NotificationDAO notificationDAO, TaskDataBinder binder, PropagationTaskExecutor taskExecutor, NotificationJobDelegate notificationJobDelegate, TaskUtilsFactory taskUtilsFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
<T extends SchedTaskTO>
TcreateSchedTask
(TaskType type, T taskTO) <T extends TaskTO>
TdeleteExecution
(String execKey) deleteExecutions
(String key, OffsetDateTime before, OffsetDateTime after) protected void
doActionJob
(String jobName, JobAction action) protected ExecTO
doExecute
(Task<?> task, OffsetDateTime startAt, boolean dryRun, Map<String, Object> additionalDataMap) doListJobs
(boolean includeCustom) execute
(ExecSpecs specs, SyncopeForm macroTaskForm) getMacroTaskForm
(String key, Locale locale) getReference
(String jobName) org.springframework.data.domain.Page
<ExecTO> listExecutions
(String key, OffsetDateTime before, OffsetDateTime after, org.springframework.data.domain.Pageable pageable) listJobs()
listRecentExecutions
(int max) purgePropagations
(OffsetDateTime since, List<ExecStatus> statuses, List<String> resources) <T extends TaskTO>
Tprotected TaskTO
resolveReference
(Method method, Object... args) <T extends TaskTO>
org.springframework.data.domain.Page<T> search
(TaskType type, String resource, String notification, AnyTypeKind anyTypeKind, String entityKey, org.springframework.data.domain.Pageable pageable, boolean details) protected void
securityChecks
(String entitlement, String realm) <T extends SchedTaskTO>
TupdateSchedTask
(TaskType type, SchedTaskTO taskTO) Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
taskDAO
-
taskExecDAO
-
resourceDAO
-
notificationDAO
-
binder
-
taskExecutor
-
notificationJobDelegate
-
taskUtilsFactory
-
jobManager
-
scheduler
-
jobStatusDAO
-
-
Constructor Details
-
TaskLogic
public TaskLogic(JobManager jobManager, SyncopeTaskScheduler scheduler, JobStatusDAO jobStatusDAO, TaskDAO taskDAO, TaskExecDAO taskExecDAO, ExternalResourceDAO resourceDAO, NotificationDAO notificationDAO, TaskDataBinder binder, PropagationTaskExecutor taskExecutor, NotificationJobDelegate notificationJobDelegate, TaskUtilsFactory taskUtilsFactory)
-
-
Method Details
-
securityChecks
-
createSchedTask
@PreAuthorize("hasRole(\'TASK_CREATE\')") public <T extends SchedTaskTO> T createSchedTask(TaskType type, T taskTO) -
updateSchedTask
@PreAuthorize("hasRole(\'TASK_UPDATE\')") public <T extends SchedTaskTO> T updateSchedTask(TaskType type, SchedTaskTO taskTO) -
search
@PreAuthorize("hasRole(\'TASK_LIST\')") @Transactional(readOnly=true) public <T extends TaskTO> org.springframework.data.domain.Page<T> search(TaskType type, String resource, String notification, AnyTypeKind anyTypeKind, String entityKey, org.springframework.data.domain.Pageable pageable, boolean details) -
read
@PreAuthorize("hasRole(\'TASK_READ\')") @Transactional(readOnly=true) public <T extends TaskTO> T read(TaskType type, String key, boolean details) -
getMacroTaskForm
@PreAuthorize("hasRole(\'TASK_READ\')") @Transactional(readOnly=true) public SyncopeForm getMacroTaskForm(String key, Locale locale) -
doExecute
-
execute
- Specified by:
execute
in classAbstractExecutableLogic<TaskTO>
-
execute
@PreAuthorize("hasRole(\'TASK_EXECUTE\')") public ExecTO execute(ExecSpecs specs, SyncopeForm macroTaskForm) -
delete
@PreAuthorize("hasRole(\'TASK_DELETE\')") public <T extends TaskTO> T delete(TaskType type, String key) -
listExecutions
@PreAuthorize("hasRole(\'TASK_READ\')") public org.springframework.data.domain.Page<ExecTO> listExecutions(String key, OffsetDateTime before, OffsetDateTime after, org.springframework.data.domain.Pageable pageable) - Specified by:
listExecutions
in classAbstractExecutableLogic<TaskTO>
-
listRecentExecutions
- Specified by:
listRecentExecutions
in classAbstractExecutableLogic<TaskTO>
-
deleteExecution
- Specified by:
deleteExecution
in classAbstractExecutableLogic<TaskTO>
-
deleteExecutions
@PreAuthorize("hasRole(\'TASK_DELETE\')") public List<BatchResponseItem> deleteExecutions(String key, OffsetDateTime before, OffsetDateTime after) - Specified by:
deleteExecutions
in classAbstractExecutableLogic<TaskTO>
-
getReference
-
listJobs
- Specified by:
listJobs
in classAbstractExecutableLogic<TaskTO>
-
getJob
- Specified by:
getJob
in classAbstractExecutableLogic<TaskTO>
-
actionJob
- Specified by:
actionJob
in classAbstractExecutableLogic<TaskTO>
-
purgePropagations
@PreAuthorize("hasRole(\'TASK_DELETE\')") public List<PropagationTaskTO> purgePropagations(OffsetDateTime since, List<ExecStatus> statuses, List<String> resources) -
resolveReference
protected TaskTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<TaskTO>
- Throws:
UnresolvedReferenceException
-
getJobTO
-
doListJobs
-
doActionJob
-