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,SyncopePullExecutor
public class LiveSyncJobDelegate
extends AbstractProvisioningJobDelegate<LiveSyncTask>
implements SyncopePullExecutor, StoppableSchedTaskJobDelegate
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected PullResultHandlerDispatcherprotected GroupPullResultHandlerprotected GroupDAOprotected InboundMatcherprotected List<LiveSyncJobDelegate.LiveSyncInfo> protected LiveSyncTaskSaverprotected LiveSyncDeltaMapperprotected final Map<String, InboundActions> protected PlainSchemaDAOprotected ProvisioningProfile<PullTask, InboundActions> protected ProvisionSorterprotected booleanprotected PlainAttrValidationManagerFields inherited from class org.apache.syncope.core.provisioning.java.pushpull.AbstractProvisioningJobDelegate
anyTypeDAO, anyUtilsFactory, connector, connectorManager, entityFactory, perContextProvisionSorter, policyDAO, resourceDAOFields 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 AnyObjectPullResultHandlerprotected GroupPullResultHandlerprotected RealmPullResultHandlerprotected UserPullResultHandlerprotected StringdoExecute(JobExecutionContext context) The actual execution, delegated to child classes.protected voidvoidexecute(TaskType taskType, String taskKey, JobExecutionContext context) Executes a Job to run the given Task.protected List<InboundActions> getInboundActions(List<? extends Implementation> impls) protected voidinit(TaskType taskType, String taskKey, JobExecutionContext context) voidreportHandled(String objectClass, Name name) protected voidvoidsetLatestSyncToken(String objectClass, SyncToken latestSyncToken) voidstop()Request the current Job to stop the execution of the running Task.protected booleansyncTokenChanged(String fromProvision, String objectClass) Methods inherited from class org.apache.syncope.core.provisioning.java.pushpull.AbstractProvisioningJobDelegate
createReport, generate, getProvisionSorter, hasToBeRegisteredMethods inherited from class org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate
end, endExecution, initExecution, register, setStatusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.syncope.core.provisioning.api.pushpull.SyncopePullExecutor
reportHandled, setLatestSyncToken
-
Field Details
-
liveSyncTaskSaver
-
delaySecondsAcrossInvocations
protected int delaySecondsAcrossInvocations -
mapper
-
infos
-
stopRequested
protected volatile boolean stopRequested -
groupDAO
-
plainSchemaDAO
-
inboundMatcher
-
validator
-
latestSyncTokens
-
perContextActions
-
provisionSorter
-
profile
-
dispatcher
-
ghandler
-
-
Constructor Details
-
LiveSyncJobDelegate
public LiveSyncJobDelegate()
-
-
Method Details
-
init
protected void init(TaskType taskType, String taskKey, JobExecutionContext context) throws JobExecutionException - Throws:
JobExecutionException
-
stop
public void stop()Description copied from interface:StoppableSchedTaskJobDelegateRequest the current Job to stop the execution of the running Task.- Specified by:
stopin interfaceStoppableSchedTaskJobDelegate
-
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<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
-
syncTokenChanged
-
doLivesync
- Throws:
JobExecutionException
-
doExecute
Description copied from class:AbstractSchedTaskJobDelegateThe actual execution, delegated to child classes.- Specified by:
doExecutein 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
-
buildRealmHandler
-
buildAnyObjectHandler
-
buildUserHandler
-
buildGroupHandler
-
getInboundActions
-
setGroupOwners
protected void setGroupOwners() -
setLatestSyncToken
- Specified by:
setLatestSyncTokenin interfaceSyncopePullExecutor
-
reportHandled
- Specified by:
reportHandledin interfaceSyncopePullExecutor
-