com.evolveum.midpoint.provisioning.consistency.api
Class ErrorHandler

java.lang.Object
  extended by com.evolveum.midpoint.provisioning.consistency.api.ErrorHandler
Direct Known Subclasses:
CommunicationExceptionHandler, ConfigurationExceptionHandler, GenericErrorHandler, ObjectAlreadyExistHandler, ObjectNotFoundHandler, SchemaExceptionHandler, SecurityViolationHandler

public abstract class ErrorHandler
extends Object


Nested Class Summary
static class ErrorHandler.FailedOperation
           
 
Field Summary
protected  ChangeNotificationDispatcher changeNotificationDispatcher
           
protected  PrismContext prismContext
           
 
Constructor Summary
ErrorHandler()
           
 
Method Summary
protected
<T extends ResourceObjectShadowType>
Collection<ItemDelta>
createAttemptModification(T shadow, Collection<ItemDelta> modifications)
           
protected  ResourceOperationDescription createOperationDescription(ResourceObjectShadowType shadowType, ResourceType resource, ObjectDelta delta, Task task, OperationResult result)
           
protected  Integer getAttemptNumber(ResourceObjectShadowType shadow)
           
abstract
<T extends ResourceObjectShadowType>
T
handleError(T shadow, ErrorHandler.FailedOperation op, Exception ex, boolean compensate, Task task, OperationResult parentResult)
           
protected  boolean isDoDiscovery(ResourceType resource)
           
protected  boolean isPostpone(ResourceType resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changeNotificationDispatcher

@Autowired(required=true)
protected ChangeNotificationDispatcher changeNotificationDispatcher

prismContext

@Autowired
protected PrismContext prismContext
Constructor Detail

ErrorHandler

public ErrorHandler()
Method Detail

isPostpone

protected boolean isPostpone(ResourceType resource)

isDoDiscovery

protected boolean isDoDiscovery(ResourceType resource)

handleError

public abstract <T extends ResourceObjectShadowType> T handleError(T shadow,
                                                                   ErrorHandler.FailedOperation op,
                                                                   Exception ex,
                                                                   boolean compensate,
                                                                   Task task,
                                                                   OperationResult parentResult)
                                                        throws SchemaException,
                                                               GenericFrameworkException,
                                                               CommunicationException,
                                                               ObjectNotFoundException,
                                                               ObjectAlreadyExistsException,
                                                               ConfigurationException,
                                                               SecurityViolationException
Throws:
SchemaException
GenericFrameworkException
CommunicationException
ObjectNotFoundException
ObjectAlreadyExistsException
ConfigurationException
SecurityViolationException

createAttemptModification

protected <T extends ResourceObjectShadowType> Collection<ItemDelta> createAttemptModification(T shadow,
                                                                                               Collection<ItemDelta> modifications)

getAttemptNumber

protected Integer getAttemptNumber(ResourceObjectShadowType shadow)

createOperationDescription

protected ResourceOperationDescription createOperationDescription(ResourceObjectShadowType shadowType,
                                                                  ResourceType resource,
                                                                  ObjectDelta delta,
                                                                  Task task,
                                                                  OperationResult result)


Copyright © 2013 evolveum. All Rights Reserved.