Class TestSampleJobDelegate
java.lang.Object
org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate<SchedTask>
org.apache.syncope.fit.core.reference.TestSampleJobDelegate
- All Implemented Interfaces:
SchedTaskJobDelegate
Sample implementation for executing a scheduled task.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoExecute(JobExecutionContext context) The actual execution, delegated to child classes.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, execute, init, initExecution, register, setStatus
-
Constructor Details
-
TestSampleJobDelegate
public TestSampleJobDelegate()
-
-
Method Details
-
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
- Throws:
JobExecutionException- if anything goes wrong
-
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
-