Class LiveSyncJobDelegate
java.lang.Object
org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate<LiveSyncTask>
org.apache.syncope.core.provisioning.java.pushpull.AbstractProvisioningJobDelegate<LiveSyncTask>
org.apache.syncope.core.provisioning.java.pushpull.LiveSyncJobDelegate
- All Implemented Interfaces:
SchedTaskJobDelegate
,StoppableSchedTaskJobDelegate
public class LiveSyncJobDelegate
extends AbstractProvisioningJobDelegate<LiveSyncTask>
implements StoppableSchedTaskJobDelegate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected GroupDAO
protected InboundMatcher
protected List
<LiveSyncJobDelegate.LiveSyncInfo> protected LiveSyncTaskExecSaver
protected LiveSyncDeltaMapper
protected final Map
<String, InboundActions> protected PlainSchemaDAO
protected ProvisioningProfile
<PullTask, InboundActions> protected boolean
protected PlainAttrValidationManager
protected VirSchemaDAO
Fields inherited from class org.apache.syncope.core.provisioning.java.pushpull.AbstractProvisioningJobDelegate
anyTypeDAO, anyUtilsFactory, connector, connectorManager, entityFactory, perContextProvisionSorter, policyDAO, resourceDAO
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 AnyObjectPullResultHandler
protected GroupPullResultHandler
protected RealmPullResultHandler
protected UserPullResultHandler
protected 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 void
init
(TaskType taskType, String taskKey, JobExecutionContext context) void
stop()
Request the current Job to stop the execution of the running Task.Methods inherited from class org.apache.syncope.core.provisioning.java.pushpull.AbstractProvisioningJobDelegate
createReport, generate, getProvisionSorter, hasToBeRegistered
Methods inherited from class org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate
end, endExecution, initExecution, register, setStatus
-
Field Details
-
plainSchemaDAO
-
virSchemaDAO
-
groupDAO
-
validator
-
inboundMatcher
-
liveSyncTaskExecSaver
-
profile
-
mapper
-
infos
-
perContextActions
-
stopRequested
protected volatile boolean stopRequested
-
-
Constructor Details
-
LiveSyncJobDelegate
public LiveSyncJobDelegate()
-
-
Method Details
-
buildRealmHandler
-
buildAnyObjectHandler
-
buildUserHandler
-
buildGroupHandler
-
init
protected void init(TaskType taskType, String taskKey, JobExecutionContext context) throws JobExecutionException - Overrides:
init
in classAbstractProvisioningJobDelegate<LiveSyncTask>
- Throws:
JobExecutionException
-
stop
public void stop()Description copied from interface:StoppableSchedTaskJobDelegate
Request the current Job to stop the execution of the running Task.- Specified by:
stop
in interfaceStoppableSchedTaskJobDelegate
-
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<LiveSyncTask>
- 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<LiveSyncTask>
- 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
-