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
FieldsModifier and TypeFieldDescriptionprotected final TaskDataBinderprotected final JobManagerprotected final JobStatusDAOprotected final NotificationDAOprotected final NotificationJobDelegateprotected final ExternalResourceDAOprotected final SyncopeTaskSchedulerprotected final TaskDAOprotected final TaskExecDAOprotected final PropagationTaskExecutorprotected final TaskUtilsFactoryFields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG -
Constructor Summary
ConstructorsConstructorDescriptionTaskLogic(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 voiddoActionJob(String jobName, JobAction action) protected ExecTOdoExecute(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 TaskTOresolveReference(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 voidsecurityChecks(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:
executein 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:
listExecutionsin classAbstractExecutableLogic<TaskTO>
-
listRecentExecutions
- Specified by:
listRecentExecutionsin classAbstractExecutableLogic<TaskTO>
-
deleteExecution
- Specified by:
deleteExecutionin classAbstractExecutableLogic<TaskTO>
-
deleteExecutions
@PreAuthorize("hasRole(\'TASK_DELETE\')") public List<BatchResponseItem> deleteExecutions(String key, OffsetDateTime before, OffsetDateTime after) - Specified by:
deleteExecutionsin classAbstractExecutableLogic<TaskTO>
-
getReference
-
listJobs
- Specified by:
listJobsin classAbstractExecutableLogic<TaskTO>
-
getJob
- Specified by:
getJobin classAbstractExecutableLogic<TaskTO>
-
actionJob
- Specified by:
actionJobin 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:
resolveReferencein classAbstractLogic<TaskTO>- Throws:
UnresolvedReferenceException
-
getJobTO
-
doListJobs
-
doActionJob
-