Class ReferenceDeltaImpl
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.prism.impl.delta.ItemDeltaImpl<PrismReferenceValue,PrismReferenceDefinition>
com.evolveum.midpoint.prism.impl.delta.ReferenceDeltaImpl
- All Implemented Interfaces:
ItemDelta<PrismReferenceValue,
,PrismReferenceDefinition> ReferenceDelta
,Freezable
,Itemable
,PathVisitable
,PrismContextSensitive
,Visitable
,DebugDumpable
,Foreachable<PrismReferenceValue>
,Serializable
public class ReferenceDeltaImpl
extends ItemDeltaImpl<PrismReferenceValue,PrismReferenceDefinition>
implements ReferenceDelta
- Author:
- semancik
- See Also:
-
Field Summary
Fields inherited from class com.evolveum.midpoint.prism.impl.delta.ItemDeltaImpl
definition, elementName, parentPath, valuesToAdd, valuesToDelete, valuesToReplace
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
ConstructorDescriptionReferenceDeltaImpl
(ItemPath propertyPath, PrismReferenceDefinition itemDefinition, PrismContext prismContext) ReferenceDeltaImpl
(ItemPath parentPath, QName name, PrismReferenceDefinition itemDefinition, PrismContext prismContext) ReferenceDeltaImpl
(PrismReferenceDefinition itemDefinition, PrismContext prismContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDefinition
(PrismReferenceDefinition definition) clone()
protected void
copyValues
(ReferenceDeltaImpl clone) static ReferenceDeltaImpl
createModificationAdd
(ItemPath path, PrismObjectDefinition<?> objectDefinition, PrismReferenceValue refValue) static ReferenceDeltaImpl
createModificationAdd
(ItemPath path, PrismObjectDefinition<?> objectDefinition, String oid) static ReferenceDeltaImpl
createModificationAdd
(ItemPath path, PrismObjectDefinition<?> objectDefinition, Collection<PrismReferenceValue> refValues) static <T extends Objectable>
ReferenceDeltaImplcreateModificationAdd
(Class<T> type, ItemName refName, PrismContext prismContext, PrismObject<?> refTarget) static <T extends Objectable>
ReferenceDeltaImplcreateModificationAdd
(Class<T> type, ItemName refName, PrismContext prismContext, PrismReferenceValue refValue) static Collection<? extends ItemDelta<?,
?>> createModificationAddCollection
(ItemName propertyName, PrismObjectDefinition<?> objectDefinition, PrismReferenceValue refValue) static <T extends Objectable>
Collection<? extends ItemDelta<?,?>> createModificationAddCollection
(Class<T> type, ItemName refName, PrismContext prismContext, PrismObject<?> refTarget) static <T extends Objectable>
Collection<? extends ItemDelta<?,?>> createModificationAddCollection
(Class<T> type, ItemName refName, PrismContext prismContext, PrismReferenceValue refValue) static <T extends Objectable>
Collection<? extends ItemDelta<?,?>> createModificationAddCollection
(Class<T> type, ItemName refName, PrismContext prismContext, String targetOid) static ReferenceDeltaImpl
createModificationDelete
(ItemPath path, PrismObjectDefinition<?> objectDefinition, Collection<PrismReferenceValue> refValues) static <T extends Objectable>
ReferenceDeltaImplcreateModificationDelete
(Class<T> type, QName refName, PrismContext prismContext, PrismObject<?> refTarget) static <T extends Objectable>
ReferenceDeltaImplcreateModificationDelete
(Class<T> type, QName refName, PrismContext prismContext, PrismReferenceValue refValue) static ReferenceDeltaImpl
createModificationDelete
(QName refName, PrismObjectDefinition<?> objectDefinition, PrismObject<?> refTarget, PrismContext prismContext) static ReferenceDeltaImpl
createModificationDelete
(QName refName, PrismObjectDefinition<?> objectDefinition, PrismReferenceValue refValue) static ReferenceDeltaImpl
createModificationDelete
(QName refName, PrismObjectDefinition<?> objectDefinition, String oid) static <T extends Objectable>
Collection<? extends ItemDelta<?,?>> createModificationDeleteCollection
(Class<T> type, QName refName, PrismContext prismContext, PrismObject<?> refTarget) static <T extends Objectable>
Collection<? extends ItemDelta<?,?>> createModificationDeleteCollection
(Class<T> type, QName refName, PrismContext prismContext, PrismReferenceValue refValue) static Collection<? extends ItemDelta<?,
?>> createModificationDeleteCollection
(QName propertyName, PrismObjectDefinition<?> objectDefinition, PrismReferenceValue refValue) static ReferenceDeltaImpl
createModificationReplace
(ItemPath path, PrismObjectDefinition<?> objectDefinition, PrismReferenceValue refValue) static ReferenceDeltaImpl
createModificationReplace
(ItemPath path, PrismObjectDefinition<?> objectDefinition, String oid) Convenience method for quick creation of object deltas that replace a single object property.static ReferenceDeltaImpl
createModificationReplace
(ItemPath path, PrismObjectDefinition<?> objectDefinition, Collection<PrismReferenceValue> refValues) static <O extends Objectable>
ReferenceDeltaImplcreateModificationReplace
(ItemPath path, Class<O> type, PrismContext ctx, String oid) boolean
isApplicableToType
(Item item) void
setDefinition
(PrismReferenceDefinition definition) Methods inherited from class com.evolveum.midpoint.prism.impl.delta.ItemDeltaImpl
accept, accept, accept, addEstimatedOldValue, addEstimatedOldValues, addEstimatedOldValues, addsAnyValue, addToReplaceDelta, addValuesToAdd, addValuesToAdd, addValuesToDelete, addValuesToDelete, addValueToAdd, addValueToDelete, addValueToReplace, applyDefinition, applyTo, applyTo, applyToMatchingPath, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, clear, clearValuesToAdd, clearValuesToDelete, clearValuesToReplace, cloneWithChangedParentPath, contains, contains, copyValues, createReverseDelta, debugDump, distributeReplace, dumpValues, equals, equivalent, filterValues, filterYields, findValueToAddOrReplace, foreach, getAnyValue, getDefinition, getElementName, getEstimatedOldValues, getItemNew, getItemNew, getItemNewMatchingPath, getParentPath, getPath, getPrismContext, getSubDelta, getValueChanges, getValuesToAdd, getValuesToDelete, getValuesToReplace, hasAnyRawValue, hasCompleteDefinition, hashCode, isAdd, isApplicableTo, isDelete, isEmpty, isLiterallyEmpty, isRaw, isRedundant, isReplace, isValueEquivalent, isValueToAdd, isValueToDelete, isValueToReplace, merge, mergeValuesToAdd, mergeValuesToAdd, mergeValuesToDelete, mergeValuesToDelete, mergeValuesToReplace, mergeValuesToReplace, mergeValueToAdd, mergeValueToDelete, mergeValueToReplace, narrow, normalize, removeValueToAdd, removeValueToDelete, removeValueToReplace, resetValuesToAdd, resetValuesToDelete, resetValuesToReplace, revive, setElementName, setEstimatedOldValues, setOriginTypeRecursive, setParentPath, setValuesToReplace, setValuesToReplace, setValueToReplace, setValueToReplace, simplify, size, toDeltaSetTriple, toString, validate, validate, validateValues, validateValues
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable, performFreeze
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
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze
Methods inherited from interface com.evolveum.midpoint.prism.delta.ItemDelta
accept, accept, accept, addEstimatedOldValue, addEstimatedOldValues, addEstimatedOldValues, addsAnyValue, addToReplaceDelta, addValuesToAdd, addValuesToAdd, addValuesToDelete, addValuesToDelete, addValueToAdd, addValueToDelete, addValueToReplace, applyDefinition, applyTo, applyTo, applyToMatchingPath, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, clear, clearValuesToAdd, clearValuesToDelete, clearValuesToReplace, cloneWithChangedParentPath, contains, contains, createReverseDelta, debugDump, distributeReplace, equals, equivalent, filterValues, filterYields, findValueToAddOrReplace, foreach, getAnyValue, getDefinition, getElementName, getEstimatedOldValues, getItemNew, getItemNew, getItemNewMatchingPath, getParentPath, getPath, getRealValuesToAdd, getRealValuesToDelete, getRealValuesToReplace, getSubDelta, getValueChanges, getValuesToAdd, getValuesToDelete, getValuesToReplace, hasCompleteDefinition, isAdd, isApplicableTo, isDelete, isEmpty, isImmutable, isLiterallyEmpty, isOperational, isRaw, isRedundant, isReplace, isValueToAdd, isValueToDelete, isValueToReplace, merge, mergeValuesToAdd, mergeValuesToAdd, mergeValuesToDelete, mergeValuesToDelete, mergeValuesToReplace, mergeValuesToReplace, mergeValueToAdd, mergeValueToDelete, mergeValueToReplace, narrow, normalize, removeValueToAdd, removeValueToDelete, removeValueToReplace, resetValuesToAdd, resetValuesToDelete, resetValuesToReplace, revive, setElementName, setEstimatedOldValues, setOriginTypeRecursive, setParentPath, setValuesToReplace, setValuesToReplace, setValueToReplace, setValueToReplace, simplify, size, toDeltaSetTriple, toString, validate, validate, validateValues, validateValues
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
-
Constructor Details
-
ReferenceDeltaImpl
-
ReferenceDeltaImpl
public ReferenceDeltaImpl(ItemPath propertyPath, PrismReferenceDefinition itemDefinition, PrismContext prismContext) -
ReferenceDeltaImpl
public ReferenceDeltaImpl(ItemPath parentPath, QName name, PrismReferenceDefinition itemDefinition, PrismContext prismContext)
-
-
Method Details
-
getItemClass
- Specified by:
getItemClass
in interfaceItemDelta<PrismReferenceValue,
PrismReferenceDefinition> - Specified by:
getItemClass
in interfaceReferenceDelta
- Specified by:
getItemClass
in classItemDeltaImpl<PrismReferenceValue,
PrismReferenceDefinition>
-
setDefinition
- Specified by:
setDefinition
in interfaceItemDelta<PrismReferenceValue,
PrismReferenceDefinition> - Specified by:
setDefinition
in interfaceReferenceDelta
- Overrides:
setDefinition
in classItemDeltaImpl<PrismReferenceValue,
PrismReferenceDefinition>
-
applyDefinition
- Specified by:
applyDefinition
in interfaceItemDelta<PrismReferenceValue,
PrismReferenceDefinition> - Specified by:
applyDefinition
in interfaceReferenceDelta
- Overrides:
applyDefinition
in classItemDeltaImpl<PrismReferenceValue,
PrismReferenceDefinition> - Throws:
SchemaException
-
isApplicableToType
- Specified by:
isApplicableToType
in interfaceReferenceDelta
- Specified by:
isApplicableToType
in classItemDeltaImpl<PrismReferenceValue,
PrismReferenceDefinition>
-
clone
- Specified by:
clone
in interfaceItemDelta<PrismReferenceValue,
PrismReferenceDefinition> - Specified by:
clone
in interfaceReferenceDelta
- Specified by:
clone
in classItemDeltaImpl<PrismReferenceValue,
PrismReferenceDefinition>
-
copyValues
-
createModificationReplace
public static ReferenceDeltaImpl createModificationReplace(ItemPath path, PrismObjectDefinition<?> objectDefinition, String oid) Convenience method for quick creation of object deltas that replace a single object property. This is used quite often to justify a separate method. -
createModificationReplace
public static <O extends Objectable> ReferenceDeltaImpl createModificationReplace(ItemPath path, Class<O> type, PrismContext ctx, String oid) -
createModificationReplace
public static ReferenceDeltaImpl createModificationReplace(ItemPath path, PrismObjectDefinition<?> objectDefinition, PrismReferenceValue refValue) -
createModificationReplace
public static ReferenceDeltaImpl createModificationReplace(ItemPath path, PrismObjectDefinition<?> objectDefinition, Collection<PrismReferenceValue> refValues) -
createModificationAddCollection
public static Collection<? extends ItemDelta<?,?>> createModificationAddCollection(ItemName propertyName, PrismObjectDefinition<?> objectDefinition, PrismReferenceValue refValue) -
createModificationAdd
public static ReferenceDeltaImpl createModificationAdd(ItemPath path, PrismObjectDefinition<?> objectDefinition, String oid) -
createModificationAdd
public static ReferenceDeltaImpl createModificationAdd(ItemPath path, PrismObjectDefinition<?> objectDefinition, PrismReferenceValue refValue) -
createModificationAdd
public static ReferenceDeltaImpl createModificationAdd(ItemPath path, PrismObjectDefinition<?> objectDefinition, Collection<PrismReferenceValue> refValues) -
createModificationAdd
public static <T extends Objectable> ReferenceDeltaImpl createModificationAdd(Class<T> type, ItemName refName, PrismContext prismContext, PrismReferenceValue refValue) -
createModificationAddCollection
public static <T extends Objectable> Collection<? extends ItemDelta<?,?>> createModificationAddCollection(Class<T> type, ItemName refName, PrismContext prismContext, String targetOid) -
createModificationAddCollection
public static <T extends Objectable> Collection<? extends ItemDelta<?,?>> createModificationAddCollection(Class<T> type, ItemName refName, PrismContext prismContext, PrismReferenceValue refValue) -
createModificationAdd
public static <T extends Objectable> ReferenceDeltaImpl createModificationAdd(Class<T> type, ItemName refName, PrismContext prismContext, PrismObject<?> refTarget) -
createModificationAddCollection
public static <T extends Objectable> Collection<? extends ItemDelta<?,?>> createModificationAddCollection(Class<T> type, ItemName refName, PrismContext prismContext, PrismObject<?> refTarget) -
createModificationDeleteCollection
public static Collection<? extends ItemDelta<?,?>> createModificationDeleteCollection(QName propertyName, PrismObjectDefinition<?> objectDefinition, PrismReferenceValue refValue) -
createModificationDelete
public static ReferenceDeltaImpl createModificationDelete(ItemPath path, PrismObjectDefinition<?> objectDefinition, Collection<PrismReferenceValue> refValues) -
createModificationDelete
public static ReferenceDeltaImpl createModificationDelete(QName refName, PrismObjectDefinition<?> objectDefinition, String oid) -
createModificationDelete
public static ReferenceDeltaImpl createModificationDelete(QName refName, PrismObjectDefinition<?> objectDefinition, PrismObject<?> refTarget, PrismContext prismContext) -
createModificationDelete
public static ReferenceDeltaImpl createModificationDelete(QName refName, PrismObjectDefinition<?> objectDefinition, PrismReferenceValue refValue) -
createModificationDelete
public static <T extends Objectable> ReferenceDeltaImpl createModificationDelete(Class<T> type, QName refName, PrismContext prismContext, PrismReferenceValue refValue) -
createModificationDeleteCollection
public static <T extends Objectable> Collection<? extends ItemDelta<?,?>> createModificationDeleteCollection(Class<T> type, QName refName, PrismContext prismContext, PrismReferenceValue refValue) -
createModificationDelete
public static <T extends Objectable> ReferenceDeltaImpl createModificationDelete(Class<T> type, QName refName, PrismContext prismContext, PrismObject<?> refTarget) -
createModificationDeleteCollection
public static <T extends Objectable> Collection<? extends ItemDelta<?,?>> createModificationDeleteCollection(Class<T> type, QName refName, PrismContext prismContext, PrismObject<?> refTarget)
-