com.evolveum.midpoint.model.sync
Class SynchronizeAccountResultHandler

java.lang.Object
  extended by com.evolveum.midpoint.model.sync.SynchronizeAccountResultHandler
All Implemented Interfaces:
ResultHandler<AccountShadowType>

public class SynchronizeAccountResultHandler
extends java.lang.Object
implements ResultHandler<AccountShadowType>

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

Constructor Summary
SynchronizeAccountResultHandler(ResourceType resource, RefinedAccountDefinition refinedAccountDefinition, Task task, ResourceObjectChangeListener objectChangeListener)
           
 
Method Summary
 long getErrors()
           
 java.lang.String getProcessShortName()
           
 long getProgress()
           
 javax.xml.namespace.QName getSourceChannel()
           
 boolean handle(PrismObject<AccountShadowType> accountShadow, OperationResult parentResult)
          Handle a single result.
 long heartbeat()
           
 boolean isForceAdd()
           
 boolean isStopOnError()
          Get the value of stopOnError
 void setForceAdd(boolean forceAdd)
           
 void setProcessShortName(java.lang.String processShortName)
           
 void setSourceChannel(javax.xml.namespace.QName sourceChannel)
           
 void setStopOnError(boolean stopOnError)
          Set the value of stopOnError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizeAccountResultHandler

public SynchronizeAccountResultHandler(ResourceType resource,
                                       RefinedAccountDefinition refinedAccountDefinition,
                                       Task task,
                                       ResourceObjectChangeListener objectChangeListener)
Method Detail

isForceAdd

public boolean isForceAdd()

setForceAdd

public void setForceAdd(boolean forceAdd)

getSourceChannel

public javax.xml.namespace.QName getSourceChannel()

setSourceChannel

public void setSourceChannel(javax.xml.namespace.QName sourceChannel)

getProcessShortName

public java.lang.String getProcessShortName()

setProcessShortName

public void setProcessShortName(java.lang.String processShortName)

handle

public boolean handle(PrismObject<AccountShadowType> accountShadow,
                      OperationResult parentResult)
Description copied from interface: ResultHandler
Handle a single result.

Specified by:
handle in interface ResultHandler<AccountShadowType>
Parameters:
accountShadow - Resource object to process.
Returns:
true if the operation should proceed, false if it should stop

heartbeat

public long heartbeat()

getProgress

public long getProgress()

getErrors

public long getErrors()

isStopOnError

public boolean isStopOnError()
Get the value of stopOnError

Returns:
the value of stopOnError

setStopOnError

public void setStopOnError(boolean stopOnError)
Set the value of stopOnError

Parameters:
stopOnError - new value of stopOnError


Copyright © 2012 evolveum. All Rights Reserved.