com.evolveum.midpoint.provisioning.api
Class ResourceObjectShadowFailureDescription

java.lang.Object
  extended by com.evolveum.midpoint.provisioning.api.ResourceObjectShadowFailureDescription
All Implemented Interfaces:
DebugDumpable, Dumpable

public class ResourceObjectShadowFailureDescription
extends java.lang.Object
implements Dumpable, DebugDumpable

Describes a failure to apply a change to a specific resource object.

Author:
Radovan Semancik

Field Summary
 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
 
Constructor Summary
ResourceObjectShadowFailureDescription()
           
 
Method Summary
 void checkConsistence()
           
 java.lang.String debugDump()
          Show the content of the object intended for diagnostics by system administrator.
 java.lang.String debugDump(int indent)
           
 java.lang.String dump()
          Show the content of the object intended for diagnostics by developer.
 PrismObject<? extends ResourceObjectShadowType> getCurrentShadow()
          Shadow describing the object that was the target of the operation.
 ObjectDelta<? extends ResourceObjectShadowType> getObjectDelta()
          The operation that was about to execute and that has failed.
 PrismObject<ResourceType> getResource()
           
 OperationResult getResult()
          Result of the failed operation.
 java.lang.String getSourceChannel()
           
 void setCurrentShadow(PrismObject<? extends ResourceObjectShadowType> currentShadow)
           
 void setObjectDelta(ObjectDelta<? extends ResourceObjectShadowType> objectDelta)
           
 void setResource(PrismObject<ResourceType> resource)
           
 void setResult(OperationResult result)
           
 void setSourceChannel(java.lang.String sourceChannel)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceObjectShadowFailureDescription

public ResourceObjectShadowFailureDescription()
Method Detail

getObjectDelta

public ObjectDelta<? extends ResourceObjectShadowType> getObjectDelta()
The operation that was about to execute and that has failed.


setObjectDelta

public void setObjectDelta(ObjectDelta<? extends ResourceObjectShadowType> objectDelta)

getCurrentShadow

public PrismObject<? extends ResourceObjectShadowType> getCurrentShadow()
Shadow describing the object that was the target of the operation. It may a "temporary" shadow that is not yet bound to a specific resource object (e.g. in case of add operation).


setCurrentShadow

public void setCurrentShadow(PrismObject<? extends ResourceObjectShadowType> currentShadow)

getSourceChannel

public java.lang.String getSourceChannel()

setSourceChannel

public void setSourceChannel(java.lang.String sourceChannel)

getResource

public PrismObject<ResourceType> getResource()

setResource

public void setResource(PrismObject<ResourceType> resource)

getResult

public OperationResult getResult()
Result of the failed operation.


setResult

public void setResult(OperationResult result)

checkConsistence

public void checkConsistence()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

dump

public java.lang.String dump()
Description copied from interface: Dumpable
Show the content of the object intended for diagnostics by developer. The content may be multi-line, in case of hierarchical objects it may be intended. The use of this method may not be efficient. It is not supposed to be used in normal operation. However, it is very useful in tests or in case of dumping objects in severe error situations.

Specified by:
dump in interface Dumpable
Returns:
content of the object intended for diagnostics.

debugDump

public java.lang.String debugDump()
Description copied from interface: DebugDumpable
Show the content of the object intended for diagnostics by system administrator. The out put should be suitable to use in system logs at "debug" level. It may be multi-line, but in that case it should be well indented and quite terse. As it is intended to be used by system administrator, it should not use any developer terms such as class names, exceptions or stack traces.

Specified by:
debugDump in interface DebugDumpable
Returns:
content of the object intended for diagnostics by system administrator.

debugDump

public java.lang.String debugDump(int indent)
Specified by:
debugDump in interface DebugDumpable


Copyright © 2012 evolveum. All Rights Reserved.