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
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeResultHandler
REQUEST_QUEUE_OFFER_TIMEOUT, WORKER_THREAD_WAIT_FOR_REQUEST
-
-
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()
ResourceType
getResourceWorkingCopy()
QName
getSourceChannel()
protected boolean
handleObject(PrismObject<ShadowType> accountShadow, RunningTask workerTask, OperationResult result)
This methods will be called for each search result.protected boolean
handleObjectInternal(PrismObject<ShadowType> accountShadow, RunningTask workerTask, OperationResult result)
boolean
isForceAdd()
void
setForceAdd(boolean forceAdd)
void
setIntentIsNull(boolean intentIsNull)
void
setSourceChannel(QName sourceChannel)
-
Methods inherited from class com.evolveum.midpoint.repo.common.task.AbstractSearchIterativeResultHandler
completeProcessing, createWorkerThreads, getAverageTime, getContextDesc, getCoordinatorTask, getDisplayName, getErrors, getProcessShortName, getProcessShortNameCapitalized, getProgress, getStageType, getTaskOperationPrefix, getWallAverageTime, getWallTime, getWorkerThreadsCount, handle, heartbeat, isEnableActionsExecutedStatistics, isEnableIterationStatistics, isEnableSynchronizationStatistics, isLogErrors, isLogObjectProgress, isRecordIterationStatistics, isStopOnError, setContextDesc, setEnableActionsExecutedStatistics, setEnableIterationStatistics, setEnableSynchronizationStatistics, setLogErrors, setLogObjectProgress, setRecordIterationStatistics, setStopOnError, signalAllItemsSubmitted, updateOperationResult, waitForCompletion
-
-
-
-
Constructor Detail
-
SynchronizeAccountResultHandler
public SynchronizeAccountResultHandler(ResourceType resource, ObjectClassComplexTypeDefinition objectClassDef, String processShortName, RunningTask coordinatorTask, ResourceObjectChangeListener objectChangeListener, TaskPartitionDefinitionType stageType, TaskManager taskManager)
-
-
Method Detail
-
setIntentIsNull
public void setIntentIsNull(boolean intentIsNull)
-
isForceAdd
public boolean isForceAdd()
-
setForceAdd
public void setForceAdd(boolean forceAdd)
-
getSourceChannel
public QName getSourceChannel()
-
setSourceChannel
public void setSourceChannel(QName sourceChannel)
-
getResourceOid
public String getResourceOid()
-
getResourceWorkingCopy
public ResourceType getResourceWorkingCopy()
-
getObjectClass
public ObjectClassComplexTypeDefinition getObjectClass()
-
handleObject
protected boolean handleObject(PrismObject<ShadowType> accountShadow, 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>
-
handleObjectInternal
protected boolean handleObjectInternal(PrismObject<ShadowType> accountShadow, RunningTask workerTask, OperationResult result)
-
-