Class ResourceOperationDescription
java.lang.Object
com.evolveum.midpoint.provisioning.api.ResourceOperationDescription
- All Implemented Interfaces:
ProvisioningEvent
,DebugDumpable
public class ResourceOperationDescription
extends Object
implements ProvisioningEvent, DebugDumpable
Describes an attempt to apply a change to a specific resource object.
- Author:
- Radovan Semancik
- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
debugDump
(int indent) int
PrismObject<? extends ShadowType>
Shadow describing the object that was the target of the operation.Result of the failed operation.ObjectDelta<? extends ShadowType>
The operation that was about to execute and that has failed.boolean
True if the operation is asynchronous.void
setAsynchronous
(boolean asynchronous) void
setAttemptNumber
(int attemptNumber) void
setCurrentShadow
(PrismObject<? extends ShadowType> currentShadow) void
setMessage
(String message) void
setObjectDelta
(ObjectDelta<? extends ShadowType> objectDelta) void
setResource
(PrismObject<ResourceType> resource) void
setSourceChannel
(String sourceChannel) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Constructor Details
-
ResourceOperationDescription
public ResourceOperationDescription()
-
-
Method Details
-
getObjectDelta
The operation that was about to execute and that has failed. -
setObjectDelta
-
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
-
getSourceChannel
-
setSourceChannel
-
getResource
-
setResource
-
getMessage
Result of the failed operation. -
setMessage
-
isAsynchronous
public boolean isAsynchronous()True if the operation is asynchronous. I.e. true if the operation cannot provide direct return value and therefore the invocation of the listener is the only way how to pass operation return value to the upper layers. This may be useful e.g. for decided whether log the message and what log level to use (it can be assumed that the error gets logged at least once for synchronous operations, but this may be the only chance to properly log it for asynchronous operations). -
setAsynchronous
public void setAsynchronous(boolean asynchronous) -
getAttemptNumber
public int getAttemptNumber() -
setAttemptNumber
public void setAttemptNumber(int attemptNumber) -
checkConsistence
public void checkConsistence() -
toString
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-