Class PushJobDelegate
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate<T>
-
- org.apache.syncope.core.provisioning.java.pushpull.AbstractProvisioningJobDelegate<PushTask>
-
- org.apache.syncope.core.provisioning.java.pushpull.PushJobDelegate
-
- All Implemented Interfaces:
JobDelegate,SchedTaskJobDelegate,SyncopePushExecutor
- Direct Known Subclasses:
SinglePushJobDelegate,StreamPushJobDelegate
public class PushJobDelegate extends AbstractProvisioningJobDelegate<PushTask> implements SyncopePushExecutor
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyUtilsFactoryanyUtilsFactoryprotected Map<String,MutablePair<Integer,String>>handledprotected Map<String,PushActions>perContextActionsprotected ProvisioningProfile<PushTask,PushActions>profileprotected RealmDAOrealmDAOprotected SearchCondVisitorsearchCondVisitorprotected AnySearchDAOsearchDAO-
Fields inherited from class org.apache.syncope.core.provisioning.java.pushpull.AbstractProvisioningJobDelegate
anyTypeDAO, connectorManager, entityFactory, perContextProvisionSorter, policyDAO, resourceDAO
-
Fields inherited from class org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate
auditManager, interrupt, interrupted, LOG, notificationManager, publisher, securityProperties, task, taskDAO, taskDataBinder, taskExecDAO, taskType, taskUtilsFactory
-
Fields inherited from interface org.apache.syncope.core.provisioning.api.job.JobDelegate
OPERATION_ID
-
-
Constructor Summary
Constructors Constructor Description PushJobDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AnyObjectPushResultHandlerbuildAnyObjectHandler()protected GroupPushResultHandlerbuildGroupHandler()protected RealmPushResultHandlerbuildRealmHandler()protected UserPushResultHandlerbuildUserHandler()protected StringdoExecuteProvisioning(PushTask pushTask, Connector connector, boolean dryRun, String executor, org.quartz.JobExecutionContext context)protected booleandoHandle(List<? extends Any<?>> anys, PushResultHandlerDispatcher dispatcher, ExternalResource resource)protected List<PushActions>getPushActions(List<? extends Implementation> impls)voidreportHandled(String anyType, String key)voidsetInterrupted()booleanwasInterruptRequested()-
Methods inherited from class org.apache.syncope.core.provisioning.java.pushpull.AbstractProvisioningJobDelegate
createReport, doExecute, generate, getConnector, getProvisionSorter, getTaskClassReference, hasToBeRegistered
-
Methods inherited from class org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate
execute, interrupt, isInterrupted, register, setStatus
-
-
-
-
Field Detail
-
searchDAO
@Autowired protected AnySearchDAO searchDAO
-
realmDAO
@Autowired protected RealmDAO realmDAO
-
anyUtilsFactory
@Autowired protected AnyUtilsFactory anyUtilsFactory
-
searchCondVisitor
@Autowired protected SearchCondVisitor searchCondVisitor
-
profile
protected ProvisioningProfile<PushTask,PushActions> profile
-
handled
protected final Map<String,MutablePair<Integer,String>> handled
-
perContextActions
protected final Map<String,PushActions> perContextActions
-
-
Method Detail
-
reportHandled
public void reportHandled(String anyType, String key)
- Specified by:
reportHandledin interfaceSyncopePushExecutor
-
wasInterruptRequested
public boolean wasInterruptRequested()
- Specified by:
wasInterruptRequestedin interfaceSyncopePushExecutor
-
setInterrupted
public void setInterrupted()
- Specified by:
setInterruptedin interfaceSyncopePushExecutor
-
doHandle
protected boolean doHandle(List<? extends Any<?>> anys, PushResultHandlerDispatcher dispatcher, ExternalResource resource) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
buildRealmHandler
protected RealmPushResultHandler buildRealmHandler()
-
buildAnyObjectHandler
protected AnyObjectPushResultHandler buildAnyObjectHandler()
-
buildUserHandler
protected UserPushResultHandler buildUserHandler()
-
buildGroupHandler
protected GroupPushResultHandler buildGroupHandler()
-
getPushActions
protected List<PushActions> getPushActions(List<? extends Implementation> impls)
-
doExecuteProvisioning
protected String doExecuteProvisioning(PushTask pushTask, Connector connector, boolean dryRun, String executor, org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
- Specified by:
doExecuteProvisioningin classAbstractProvisioningJobDelegate<PushTask>- Throws:
org.quartz.JobExecutionException
-
-