|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.schema.delta.ObjectDelta<T>
public class ObjectDelta<T extends ObjectType>
Relative difference (delta) of the object.
This class describes how the object changes. It can describe either object addition, modification of deletion. Addition described complete new (absolute) state of the object. Modification contains a set property deltas that describe relative changes to individual properties Deletion does not contain anything. It only marks object for deletion. The OID is mandatory for modification and deletion.
PropertyDelta
Field Summary |
---|
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
---|
INDENT_STRING |
Constructor Summary | |
---|---|
ObjectDelta(java.lang.Class<T> objectTypeClass,
ChangeType changeType)
|
Method Summary | ||
---|---|---|
void |
addModification(PropertyDelta propertyDelta)
|
|
void |
applyTo(MidPointObject<T> mpObject)
Applies this object delta to specified object, returns updated object. |
|
ObjectDelta<T> |
clone()
Semi-deep clone. |
|
MidPointObject<T> |
computeChangedObject(MidPointObject<T> objectOld)
Applies this object delta to specified object, returns updated object. |
|
static
|
createDelta(ObjectModificationType objectModification,
ObjectDefinition<T> objDef)
|
|
static
|
createDelta(ObjectModificationType objectModification,
Schema schema,
java.lang.Class<T> type)
Creates new delta from the ObjectModificationType (XML). |
|
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. |
|
ChangeType |
getChangeType()
|
|
java.util.Collection<PropertyDelta> |
getModifications()
|
|
MidPointObject<T> |
getObjectToAdd()
|
|
java.lang.Class<T> |
getObjectTypeClass()
|
|
java.lang.String |
getOid()
|
|
PropertyDelta |
getPropertyDelta(PropertyPath propertyPath)
|
|
PropertyDelta |
getPropertyDelta(PropertyPath parentPath,
javax.xml.namespace.QName propertyName)
|
|
PropertyDelta |
getPropertyDelta(javax.xml.namespace.QName propertyName)
Top-level path is assumed. |
|
boolean |
isEmpty()
|
|
void |
merge(ObjectDelta<T> deltaToMerge)
Merge provided delta into this delta. |
|
void |
setChangeType(ChangeType changeType)
|
|
void |
setObjectToAdd(MidPointObject<T> objectToAdd)
|
|
void |
setObjectTypeClass(java.lang.Class<T> objectTypeClass)
|
|
void |
setOid(java.lang.String oid)
|
|
void |
swallow(PropertyDelta newPropertyDelta)
Incorporates the property delta into the existing property deltas (regardless of the change type). |
|
ObjectModificationType |
toObjectModificationType()
Converts this delta to ObjectModificationType (XML). |
|
java.lang.String |
toString()
|
|
static
|
union(ObjectDelta<T>... deltas)
Union of several object deltas. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectDelta(java.lang.Class<T> objectTypeClass, ChangeType changeType)
Method Detail |
---|
public ChangeType getChangeType()
public void setChangeType(ChangeType changeType)
public java.lang.String getOid()
public void setOid(java.lang.String oid)
public MidPointObject<T> getObjectToAdd()
public void setObjectToAdd(MidPointObject<T> objectToAdd)
public java.util.Collection<PropertyDelta> getModifications()
public void addModification(PropertyDelta propertyDelta)
public PropertyDelta getPropertyDelta(PropertyPath propertyPath)
public java.lang.Class<T> getObjectTypeClass()
public void setObjectTypeClass(java.lang.Class<T> objectTypeClass)
public PropertyDelta getPropertyDelta(javax.xml.namespace.QName propertyName)
public PropertyDelta getPropertyDelta(PropertyPath parentPath, javax.xml.namespace.QName propertyName)
public boolean isEmpty()
public ObjectDelta<T> clone()
clone
in class java.lang.Object
public void merge(ObjectDelta<T> deltaToMerge)
public static <T extends ObjectType> ObjectDelta<T> union(ObjectDelta<T>... deltas)
public void applyTo(MidPointObject<T> mpObject)
public MidPointObject<T> computeChangedObject(MidPointObject<T> objectOld)
objectOld
- object before change
public static <T extends ObjectType> ObjectDelta<T> createDelta(ObjectModificationType objectModification, Schema schema, java.lang.Class<T> type) throws SchemaException
SchemaException
public static <T extends ObjectType> ObjectDelta<T> createDelta(ObjectModificationType objectModification, ObjectDefinition<T> objDef) throws SchemaException
SchemaException
public ObjectModificationType toObjectModificationType() throws SchemaException
SchemaException
public void swallow(PropertyDelta newPropertyDelta)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public java.lang.String debugDump(int indent)
debugDump
in interface DebugDumpable
public java.lang.String dump()
Dumpable
dump
in interface Dumpable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |