Package com.evolveum.midpoint.schema
Class ObjectDeltaOperation<O extends ObjectType>
java.lang.Object
com.evolveum.midpoint.schema.ObjectDeltaOperation<O>
- All Implemented Interfaces:
DebugDumpable
,Serializable
,Cloneable
public class ObjectDeltaOperation<O extends ObjectType>
extends Object
implements DebugDumpable, Serializable, Cloneable
- Author:
- Radovan Semancik
- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
ConstructorDescriptionObjectDeltaOperation
(ObjectDelta<O> objectDelta) ObjectDeltaOperation
(ObjectDelta<O> objectDelta, @Nullable OperationResult executionResult) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
checkConsistence
(Collection<? extends ObjectDeltaOperation<?>> deltas) clone()
static Collection<ObjectDeltaOperation<? extends ObjectType>>
cloneCollection
(Collection<ObjectDeltaOperation<? extends ObjectType>> origCollection) static Collection<ObjectDeltaOperation<? extends ObjectType>>
cloneDeltaCollection
(Collection<ObjectDelta<? extends ObjectType>> origCollection) boolean
containsDelta
(ObjectDelta<O> delta, ParameterizedEquivalenceStrategy equivalenceStrategy) protected void
copyToClone
(ObjectDeltaOperation<O> clone) debugDump
(int indent) boolean
static <O extends ObjectType>
ObjectDeltaOperation<O>findAddDelta
(Collection<ObjectDeltaOperation<? extends ObjectType>> executedChanges, PrismObject<O> object) static <O extends ObjectType>
StringfindAddDeltaOid
(Collection<ObjectDeltaOperation<? extends ObjectType>> executedChanges, PrismObject<O> object) static @NotNull String
findAddDeltaOidRequired
(@NotNull Collection<ObjectDeltaOperation<? extends ObjectType>> executedChanges, @NotNull Class<? extends ObjectType> type) static <O extends ObjectType>
@NotNull List<ObjectDeltaOperation<? extends O>>findAddDeltas
(@NotNull Collection<ObjectDeltaOperation<? extends ObjectType>> executedChanges, @NotNull Class<O> objectType) Returns ADD deltas corresponding to given `objectType`static ObjectDeltaOperation<? extends ObjectType>
findFocusDeltaInCollection
(Collection<ObjectDeltaOperation<? extends ObjectType>> odos) static String
findFocusDeltaOidInCollection
(Collection<ObjectDeltaOperation<? extends ObjectType>> odos) static String
findProjectionDeltaOidInCollection
(Collection<ObjectDeltaOperation<? extends ObjectType>> executeChanges) findProjectionDeltaOidsInCollection
(Collection<ObjectDeltaOperation<? extends ObjectType>> executeChanges) static List<ObjectDeltaOperation<ShadowType>>
findProjectionDeltasInCollection
(Collection<ObjectDeltaOperation<? extends ObjectType>> odos) protected String
@Nullable OperationResult
getOid()
int
hashCode()
void
setExecutionResult
(@Nullable OperationResult executionResult) void
setObjectDelta
(ObjectDelta<O> objectDelta) void
setObjectName
(PolyString objectName) void
setObjectOid
(String objectOid) void
setResourceName
(PolyString resourceName) void
setResourceOid
(String resourceOid) void
setShadowIntent
(String intent) void
setShadowKind
(ShadowKindType kind) shorterDebugDump
(int indent) static <O extends ObjectType>
StringshorterDebugDump
(List<? extends ObjectDeltaOperation<O>> deltaOps, int indent) toString()
boolean
Approximate information if the delta was "really" executed i.e. if there's a real chance that the delta was - at least partially - applied.Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Constructor Details
-
ObjectDeltaOperation
public ObjectDeltaOperation() -
ObjectDeltaOperation
-
ObjectDeltaOperation
public ObjectDeltaOperation(ObjectDelta<O> objectDelta, @Nullable @Nullable OperationResult executionResult)
-
-
Method Details
-
getObjectDelta
-
setObjectDelta
-
getExecutionResult
-
setExecutionResult
-
getObjectName
-
setObjectName
-
getResourceOid
-
setResourceOid
-
getResourceName
-
setResourceName
-
containsDelta
public boolean containsDelta(ObjectDelta<O> delta, ParameterizedEquivalenceStrategy equivalenceStrategy) -
clone
-
copyToClone
-
checkConsistence
-
checkConsistence
public void checkConsistence() -
cloneCollection
public static Collection<ObjectDeltaOperation<? extends ObjectType>> cloneCollection(Collection<ObjectDeltaOperation<? extends ObjectType>> origCollection) -
cloneDeltaCollection
public static Collection<ObjectDeltaOperation<? extends ObjectType>> cloneDeltaCollection(Collection<ObjectDelta<? extends ObjectType>> origCollection) -
findFocusDeltaInCollection
public static ObjectDeltaOperation<? extends ObjectType> findFocusDeltaInCollection(Collection<ObjectDeltaOperation<? extends ObjectType>> odos) -
findFocusDeltaOidInCollection
public static String findFocusDeltaOidInCollection(Collection<ObjectDeltaOperation<? extends ObjectType>> odos) -
findProjectionDeltasInCollection
public static List<ObjectDeltaOperation<ShadowType>> findProjectionDeltasInCollection(Collection<ObjectDeltaOperation<? extends ObjectType>> odos) -
findProjectionDeltaOidsInCollection
public static List<String> findProjectionDeltaOidsInCollection(Collection<ObjectDeltaOperation<? extends ObjectType>> executeChanges) -
findAddDelta
public static <O extends ObjectType> ObjectDeltaOperation<O> findAddDelta(Collection<ObjectDeltaOperation<? extends ObjectType>> executedChanges, PrismObject<O> object) -
findAddDeltaOidRequired
@NotNull public static @NotNull String findAddDeltaOidRequired(@NotNull @NotNull Collection<ObjectDeltaOperation<? extends ObjectType>> executedChanges, @NotNull @NotNull Class<? extends ObjectType> type) -
findAddDeltas
@NotNull public static <O extends ObjectType> @NotNull List<ObjectDeltaOperation<? extends O>> findAddDeltas(@NotNull @NotNull Collection<ObjectDeltaOperation<? extends ObjectType>> executedChanges, @NotNull @NotNull Class<O> objectType) Returns ADD deltas corresponding to given `objectType` -
findAddDeltaOid
public static <O extends ObjectType> String findAddDeltaOid(Collection<ObjectDeltaOperation<? extends ObjectType>> executedChanges, PrismObject<O> object) -
findProjectionDeltaOidInCollection
public static String findProjectionDeltaOidInCollection(Collection<ObjectDeltaOperation<? extends ObjectType>> executeChanges) -
equals
-
hashCode
public int hashCode() -
toString
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
shorterDebugDump
-
getDebugDumpClassName
-
shorterDebugDump
public static <O extends ObjectType> String shorterDebugDump(List<? extends ObjectDeltaOperation<O>> deltaOps, int indent) -
getStatus
-
wasReallyExecuted
Approximate information if the delta was "really" executed i.e. if there's a real chance that the delta was - at least partially - applied. Any solution based on operation result status will never be 100% accurate, e.g. because a network timeout could occur just before returning a status value. So please use with care. -
getOid
-
setShadowKind
-
setShadowIntent
-
getShadowKind
-
getShadowIntent
-
getObjectOid
-
setObjectOid
-