Class PushJobDelegate
java.lang.Object
org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate<PushTask>
org.apache.syncope.core.provisioning.java.pushpull.AbstractProvisioningJobDelegate<PushTask>
org.apache.syncope.core.provisioning.java.pushpull.PushJobDelegate
- All Implemented Interfaces:
SchedTaskJobDelegate,StoppableSchedTaskJobDelegate,SyncopePushExecutor
- Direct Known Subclasses:
SinglePushJobDelegate,StreamPushJobDelegate
public class PushJobDelegate
extends AbstractProvisioningJobDelegate<PushTask>
implements SyncopePushExecutor, StoppableSchedTaskJobDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PushResultHandlerDispatcherprotected final Map<String, MutablePair<Integer, String>> protected final Map<String, PushActions> protected ProvisioningProfile<PushTask, PushActions> protected RealmSearchDAOprotected SearchCondVisitorprotected AnySearchDAOFields 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 AnyObjectPushResultHandlerprotected GroupPushResultHandlerprotected RealmPushResultHandlerprotected UserPushResultHandlerprotected StringdoExecute(JobExecutionContext context) The actual execution, delegated to child classes.protected booleandoHandle(List<? extends Any> anys, PushResultHandlerDispatcher dispatcher, ExternalResource resource) protected List<PushActions> getPushActions(List<? extends Implementation> impls) protected voidinit(TaskType taskType, String taskKey, JobExecutionContext context) voidreportHandled(String anyType, String key) voidstop()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, hasToBeRegisteredMethods inherited from class org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate
end, endExecution, execute, 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.job.SchedTaskJobDelegate
execute
-
Field Details
-
searchDAO
-
realmSearchDAO
-
searchCondVisitor
-
profile
-
handled
-
perContextActions
-
dispatcher
-
-
Constructor Details
-
PushJobDelegate
public PushJobDelegate()
-
-
Method Details
-
reportHandled
- Specified by:
reportHandledin interfaceSyncopePushExecutor
-
doHandle
protected boolean doHandle(List<? extends Any> anys, PushResultHandlerDispatcher dispatcher, ExternalResource resource) throws JobExecutionException - Throws:
JobExecutionException
-
buildRealmHandler
-
buildAnyObjectHandler
-
buildUserHandler
-
buildGroupHandler
-
getPushActions
-
init
protected void init(TaskType taskType, String taskKey, JobExecutionContext context) throws JobExecutionException - Overrides:
initin classAbstractProvisioningJobDelegate<PushTask>- 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
-
doExecute
Description copied from class:AbstractSchedTaskJobDelegateThe actual execution, delegated to child classes.- Specified by:
doExecutein classAbstractSchedTaskJobDelegate<PushTask>- 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
-