Class GroupMemberProvisionTaskJobDelegate
java.lang.Object
org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate<SchedTask>
org.apache.syncope.core.provisioning.java.job.GroupMemberProvisionTaskJobDelegate
- All Implemented Interfaces:
SchedTaskJobDelegate
-
Field Summary
FieldsFields inherited from class org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate
auditManager, executor, LOG, manageOperationId, notificationManager, publisher, securityProperties, task, taskDAO, taskExecDAO, taskType, taskUtilsFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoExecute(JobExecutionContext context) The actual execution, delegated to child classes.voidexecute(TaskType taskType, String taskKey, JobExecutionContext context) Executes a Job to run the given Task.protected booleanhasToBeRegistered(TaskExec<?> execution) Template method to determine whether this job's task execution has to be persisted or not.Methods inherited from class org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate
end, endExecution, init, initExecution, register, setStatus
-
Field Details
-
ACTION_JOBDETAIL_KEY
- See Also:
-
GROUP_KEY_JOBDETAIL_KEY
- See Also:
-
-
Constructor Details
-
GroupMemberProvisionTaskJobDelegate
public GroupMemberProvisionTaskJobDelegate()
-
-
Method Details
-
execute
@Transactional public void execute(TaskType taskType, String taskKey, JobExecutionContext context) throws JobExecutionException Description copied from interface:SchedTaskJobDelegateExecutes a Job to run the given Task.- Specified by:
executein interfaceSchedTaskJobDelegate- Overrides:
executein classAbstractSchedTaskJobDelegate<SchedTask>- Parameters:
taskType- Type of task to runtaskKey- Task key to runcontext- execution context, can be used to pass parameters to the job- Throws:
JobExecutionException- if anything goes wrong
-
doExecute
Description copied from class:AbstractSchedTaskJobDelegateThe actual execution, delegated to child classes.- Specified by:
doExecutein classAbstractSchedTaskJobDelegate<SchedTask>- Parameters:
context- job execution context, can be used to pass parameters to the job- Returns:
- the task execution status to be set
-
hasToBeRegistered
Description copied from class:AbstractSchedTaskJobDelegateTemplate method to determine whether this job's task execution has to be persisted or not.- Overrides:
hasToBeRegisteredin classAbstractSchedTaskJobDelegate<SchedTask>- Parameters:
execution- task execution- Returns:
- whether to persist or not
-