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
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
doExecute
(JobExecutionContext context) The actual execution, delegated to child classes.void
execute
(TaskType taskType, String taskKey, JobExecutionContext context) Executes a Job to run the given Task.protected boolean
hasToBeRegistered
(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:SchedTaskJobDelegate
Executes a Job to run the given Task.- Specified by:
execute
in interfaceSchedTaskJobDelegate
- Overrides:
execute
in 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:AbstractSchedTaskJobDelegate
The actual execution, delegated to child classes.- Specified by:
doExecute
in 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:AbstractSchedTaskJobDelegate
Template method to determine whether this job's task execution has to be persisted or not.- Overrides:
hasToBeRegistered
in classAbstractSchedTaskJobDelegate<SchedTask>
- Parameters:
execution
- task execution- Returns:
- whether to persist or not
-