com.evolveum.midpoint.model.importer
Class ImportAccountsFromResourceResultHandler

java.lang.Object
  extended by com.evolveum.midpoint.model.importer.ImportAccountsFromResourceResultHandler
All Implemented Interfaces:
ResultHandler

public class ImportAccountsFromResourceResultHandler
extends java.lang.Object
implements ResultHandler

Iterative search result handler for "import from resource" task. This class is called back from the searchObjectsIterative() operation of the provisioning service. It does most of the work of the "import" operation It will actually setup the "create" change notification for all objects and invoke a ResourceObjectChangeListener interface.

Author:
Radovan Semancik
See Also:
ImportAccountsFromResourceTaskHandler

Constructor Summary
ImportAccountsFromResourceResultHandler(ResourceType resource, Task task, ResourceObjectChangeListener objectChangeListener)
           
 
Method Summary
 long getErrors()
           
 long getProgress()
           
 boolean handle(ObjectType object, OperationResult parentResult)
          Handle a single result.
 long heartbeat()
           
 boolean isStopOnError()
          Get the value of stopOnError
 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

ImportAccountsFromResourceResultHandler

public ImportAccountsFromResourceResultHandler(ResourceType resource,
                                               Task task,
                                               ResourceObjectChangeListener objectChangeListener)
Method Detail

handle

public boolean handle(ObjectType object,
                      OperationResult parentResult)
Description copied from interface: ResultHandler
Handle a single result.

Specified by:
handle in interface ResultHandler
Parameters:
object - 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 © 2011 evolveum. All Rights Reserved.