Class SynchronizeAccountResultHandler
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeResultHandler<ShadowType>
-
- com.evolveum.midpoint.model.impl.sync.SynchronizeAccountResultHandler
-
- All Implemented Interfaces:
ResultHandler<ShadowType>
public class SynchronizeAccountResultHandler extends AbstractSearchIterativeResultHandler<ShadowType>
Iterative search result handler for account synchronization. Works both for reconciliation and import from resource. This class is called back from the searchObjectsIterative() operation of the provisioning service. It does most of the work of the "import" and resource reconciliation operations.- Author:
- Radovan Semancik
- See Also:
ImportAccountsFromResourceTaskHandler
,ReconciliationTaskHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeResultHandler
AbstractSearchIterativeResultHandler.ProcessingRequest
-
-
Constructor Summary
Constructors Constructor Description SynchronizeAccountResultHandler(ResourceType resource, ObjectClassComplexTypeDefinition objectClassDef, String processShortName, RunningTask coordinatorTask, ResourceObjectChangeListener objectChangeListener, TaskPartitionDefinitionType stageType, TaskManager taskManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectClassComplexTypeDefinition
getObjectClass()
String
getResourceOid()
protected boolean
handleObject(PrismObject<ShadowType> shadowObject, RunningTask workerTask, OperationResult result)
This methods will be called for each search result.void
setForceAdd(boolean forceAdd)
void
setSourceChannel(QName sourceChannel)
-
Methods inherited from class com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeResultHandler
completeProcessing, createWorkerThreads, getAverageTime, getContextDesc, getCoordinatorTask, getDisplayName, getErrors, getExceptionEncountered, getProcessShortName, getProcessShortNameCapitalized, getProgress, getStageType, getWallAverageTime, getWorkerThreadsCount, handle, heartbeat, setContextDesc, setEnableActionsExecutedStatistics, setEnableSynchronizationStatistics, setLogErrors, setLogObjectProgress, setRecordIterationStatistics, setStopOnError
-
-
-
-
Constructor Detail
-
SynchronizeAccountResultHandler
public SynchronizeAccountResultHandler(ResourceType resource, ObjectClassComplexTypeDefinition objectClassDef, String processShortName, RunningTask coordinatorTask, ResourceObjectChangeListener objectChangeListener, TaskPartitionDefinitionType stageType, TaskManager taskManager)
-
-
Method Detail
-
setForceAdd
public void setForceAdd(boolean forceAdd)
-
setSourceChannel
public void setSourceChannel(QName sourceChannel)
-
getResourceOid
public String getResourceOid()
-
getObjectClass
public ObjectClassComplexTypeDefinition getObjectClass()
-
handleObject
protected boolean handleObject(PrismObject<ShadowType> shadowObject, RunningTask workerTask, OperationResult result)
This methods will be called for each search result. It means it will be called for each account on a resource. We will pretend that the account was created and invoke notification interface.- Specified by:
handleObject
in classAbstractSearchIterativeResultHandler<ShadowType>
-
-