Package com.evolveum.midpoint.schema
Class ObjectTreeDeltas<T extends ObjectType>
- java.lang.Object
-
- com.evolveum.midpoint.schema.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.- Author:
- mederly
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ObjectTreeDeltas(ObjectDelta<T> focusChange, PrismContext prismContext)
ObjectTreeDeltas(PrismContext prismContext)
-
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
debugDumpLazily, debugDumpLazily
-
-
-
-
Constructor Detail
-
ObjectTreeDeltas
public ObjectTreeDeltas(PrismContext prismContext)
-
ObjectTreeDeltas
public ObjectTreeDeltas(ObjectDelta<T> focusChange, PrismContext prismContext)
-
-
Method Detail
-
getFocusChange
public ObjectDelta<T> getFocusChange()
-
getProjectionChange
public ObjectDelta<ShadowType> getProjectionChange(ResourceShadowDiscriminator discriminator)
-
getProjectionChangeMap
public Map<ResourceShadowDiscriminator,ObjectDelta<ShadowType>> getProjectionChangeMap()
-
setFocusChange
public void setFocusChange(ObjectDelta<T> focusChange)
-
addProjectionChange
public void addProjectionChange(ResourceShadowDiscriminator resourceShadowDiscriminator, ObjectDelta<ShadowType> primaryDelta)
-
isEmpty
public boolean isEmpty()
-
isEmpty
public static boolean isEmpty(ObjectTreeDeltasType deltas)
-
clone
public ObjectTreeDeltas<T> clone()
-
getProjectionChangeMapEntries
public Set<? extends Map.Entry<ResourceShadowDiscriminator,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 ObjectTreeDeltas fromObjectTreeDeltasType(ObjectTreeDeltasType deltasType, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
getDeltaList
public List<ObjectDelta<? extends ObjectType>> getDeltaList()
-
subtractFromFocusDelta
public boolean subtractFromFocusDelta(@NotNull ItemPath itemPath, @NotNull PrismValue value, boolean fromMinus, boolean dryRun)
-
debugDump
public 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 interfaceDebugDumpable
- Returns:
- content of the object intended for diagnostics by system administrator.
-
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 ObjectTreeDeltasType mergeDeltas(ObjectTreeDeltasType deltaTree, ObjectDeltaType deltaToMerge, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
-