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
Modifier and TypeFieldDescriptionprotected PushResultHandlerDispatcher
protected final Map
<String, MutablePair<Integer, String>> protected final Map
<String, PushActions> protected ProvisioningProfile
<PushTask, PushActions> protected RealmSearchDAO
protected SearchCondVisitor
protected AnySearchDAO
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 AnyObjectPushResultHandler
protected GroupPushResultHandler
protected RealmPushResultHandler
protected UserPushResultHandler
protected String
doExecute
(JobExecutionContext context) The actual execution, delegated to child classes.protected boolean
doHandle
(List<? extends Any<?>> anys, PushResultHandlerDispatcher dispatcher, ExternalResource resource) protected List
<PushActions> getPushActions
(List<? extends Implementation> impls) protected void
init
(TaskType taskType, String taskKey, JobExecutionContext context) void
reportHandled
(String anyType, String key) 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, execute, initExecution, register, setStatus
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
reportHandled
in 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:
init
in classAbstractProvisioningJobDelegate<PushTask>
- 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
-
doExecute
Description copied from class:AbstractSchedTaskJobDelegate
The actual execution, delegated to child classes.- Specified by:
doExecute
in 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
-