Package com.evolveum.midpoint.model.api
Class ObjectTreeDeltas<T extends ObjectType>
- java.lang.Object
-
- com.evolveum.midpoint.model.api.ObjectTreeDeltas<T>
-
- All Implemented Interfaces:
DebugDumpable
public class ObjectTreeDeltas<T extends ObjectType> extends Object implements DebugDumpable
Structure that contains all primary changes requested: from focus as well as from projections.
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ObjectTreeDeltas()
ObjectTreeDeltas(ObjectDelta<T> focusChange)
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Constructor Detail
-
ObjectTreeDeltas
public ObjectTreeDeltas()
-
ObjectTreeDeltas
public ObjectTreeDeltas(ObjectDelta<T> focusChange)
-
-
Method Detail
-
getFocusChange
public ObjectDelta<T> getFocusChange()
-
getProjectionChange
public ObjectDelta<ShadowType> getProjectionChange(ProjectionContextKey key)
-
getProjectionChangeMap
public Map<ProjectionContextKey,ObjectDelta<ShadowType>> getProjectionChangeMap()
-
setFocusChange
public void setFocusChange(ObjectDelta<T> focusChange)
-
addProjectionChange
public void addProjectionChange(ProjectionContextKey key, ObjectDelta<ShadowType> primaryDelta)
-
isEmpty
public boolean isEmpty()
-
isEmpty
public static boolean isEmpty(ObjectTreeDeltasType deltas)
-
clone
public ObjectTreeDeltas<T> clone()
-
getProjectionChangeMapEntries
public Set<Map.Entry<ProjectionContextKey,ObjectDelta<ShadowType>>> getProjectionChangeMapEntries()
-
toObjectTreeDeltasTypeXml
public static String toObjectTreeDeltasTypeXml(ObjectTreeDeltas<?> objectTreeDeltas) throws SchemaException
- Throws:
SchemaException
-
toObjectTreeDeltasTypeXml
public static String toObjectTreeDeltasTypeXml(ObjectTreeDeltasType objectTreeDeltasType, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
toObjectTreeDeltasType
public static ObjectTreeDeltasType toObjectTreeDeltasType(ObjectTreeDeltas<?> objectTreeDeltas) throws SchemaException
- Throws:
SchemaException
-
fromObjectTreeDeltasType
@Contract("null -> null; !null -> !null") public static <T extends ObjectType> ObjectTreeDeltas<T> fromObjectTreeDeltasType(ObjectTreeDeltasType deltasType) throws SchemaException
- Throws:
SchemaException
-
getDeltaList
public List<ObjectDelta<? extends ObjectType>> getDeltaList()
-
subtractFromFocusDelta
public boolean subtractFromFocusDelta(@NotNull @NotNull ItemPath itemPath, @NotNull @NotNull PrismValue value, boolean fromMinus, boolean dryRun)
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
merge
public void merge(ObjectTreeDeltas<T> deltasToMerge) throws SchemaException
- Throws:
SchemaException
-
mergeUnordered
public void mergeUnordered(ObjectTreeDeltas<T> deltasToMerge) throws SchemaException
- Throws:
SchemaException
-
mergeDeltas
public static <T extends ObjectType> ObjectTreeDeltasType mergeDeltas(ObjectTreeDeltasType deltaTree, ObjectDeltaType deltaToMerge) throws SchemaException
- Throws:
SchemaException
-
-