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:
JobDelegate
,SchedTaskJobDelegate
public class GroupMemberProvisionTaskJobDelegate extends AbstractSchedTaskJobDelegate<SchedTask>
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_JOBDETAIL_KEY
static String
GROUP_KEY_JOBDETAIL_KEY
-
Fields inherited from class org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate
auditManager, interrupt, interrupted, LOG, notificationManager, publisher, securityProperties, task, taskDAO, taskDataBinder, taskExecDAO, taskType, taskUtilsFactory
-
Fields inherited from interface org.apache.syncope.core.provisioning.api.job.JobDelegate
OPERATION_ID
-
-
Constructor Summary
Constructors Constructor Description GroupMemberProvisionTaskJobDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
doExecute(boolean dryRun, String executor, org.quartz.JobExecutionContext context)
The actual execution, delegated to child classes.void
execute(TaskType taskType, String taskKey, boolean dryRun, org.quartz.JobExecutionContext context)
Executes a Quartz 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
interrupt, isInterrupted, register, setStatus
-
-
-
-
Field Detail
-
ACTION_JOBDETAIL_KEY
public static final String ACTION_JOBDETAIL_KEY
- See Also:
- Constant Field Values
-
GROUP_KEY_JOBDETAIL_KEY
public static final String GROUP_KEY_JOBDETAIL_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
@Transactional public void execute(TaskType taskType, String taskKey, boolean dryRun, org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
Description copied from interface:SchedTaskJobDelegate
Executes a Quartz 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 rundryRun
- indicates if execution shall be simulated with no actual changescontext
- Quartz' execution context, can be used to pass parameters to the job- Throws:
org.quartz.JobExecutionException
- if anything goes wrong
-
doExecute
protected String doExecute(boolean dryRun, String executor, org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
Description copied from class:AbstractSchedTaskJobDelegate
The actual execution, delegated to child classes.- Specified by:
doExecute
in classAbstractSchedTaskJobDelegate<SchedTask>
- Parameters:
dryRun
- whether to actually touch the dataexecutor
- the user executing this taskcontext
- Quartz' execution context, can be used to pass parameters to the job- Returns:
- the task execution status to be set
- Throws:
org.quartz.JobExecutionException
- if anything goes wrong
-
hasToBeRegistered
protected boolean hasToBeRegistered(TaskExec<?> execution)
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
-
-