Class ReferenceDeltaImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.delta.ItemDeltaImpl<PrismReferenceValue,PrismReferenceDefinition>
-
- com.evolveum.midpoint.prism.impl.delta.ReferenceDeltaImpl
-
- All Implemented Interfaces:
ItemDelta<PrismReferenceValue,PrismReferenceDefinition>
,ReferenceDelta
,Itemable
,PathVisitable
,Visitable
,DebugDumpable
,Foreachable<PrismReferenceValue>
,Serializable
public class ReferenceDeltaImpl extends ItemDeltaImpl<PrismReferenceValue,PrismReferenceDefinition> implements ReferenceDelta
- Author:
- semancik
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.prism.impl.delta.ItemDeltaImpl
definition, elementName, estimatedOldValues, fullPath, parentPath, valuesToAdd, valuesToDelete, valuesToReplace
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ReferenceDeltaImpl(ItemPath propertyPath, PrismReferenceDefinition itemDefinition, PrismContext prismContext)
ReferenceDeltaImpl(ItemPath parentPath, QName name, PrismReferenceDefinition itemDefinition, PrismContext prismContext)
ReferenceDeltaImpl(PrismReferenceDefinition itemDefinition, PrismContext prismContext)
-
Method Summary
-
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, applyTo, applyTo, applyToMatchingPath, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, checkImmutability, checkMutability, clear, clearValuesToAdd, clearValuesToDelete, clearValuesToReplace, cloneWithChangedParentPath, contains, contains, containsEquivalentValue, copyValues, createReverseDelta, debugDump, distributeReplace, dumpValues, equals, equivalent, filterValues, findValueToAddOrReplace, foreach, getAnyValue, getDefinition, getElementName, getEstimatedOldValues, getItemNew, getItemNew, getItemNewMatchingPath, getParentPath, getPath, getPrismContext, getSubDelta, getValueChanges, getValuesToAdd, getValuesToDelete, getValuesToReplace, hasCompleteDefinition, hashCode, isAdd, isApplicableTo, isDelete, isEmpty, isImmutable, isInFactEmpty, isRaw, isRedundant, isRedundant, isReplace, isValueEquivalent, isValueToAdd, isValueToAdd, isValueToDelete, isValueToDelete, isValueToReplace, isValueToReplace, merge, mergeValuesToAdd, mergeValuesToAdd, mergeValuesToDelete, mergeValuesToDelete, mergeValuesToReplace, mergeValuesToReplace, mergeValueToAdd, mergeValueToDelete, mergeValueToReplace, narrow, narrow, normalize, removeValueToAdd, removeValueToDelete, removeValueToReplace, resetValuesToAdd, resetValuesToDelete, resetValuesToReplace, revive, setElementName, setEstimatedOldValues, setImmutable, setOriginTypeRecursive, setParentPath, setValuesToReplace, setValuesToReplace, setValueToReplace, setValueToReplace, simplify, size, toDeltaSetTriple, toDeltaSetTriple, toString, validate, validate, validateValues, validateValues
-
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.delta.ItemDelta
accept, accept, accept, addEstimatedOldValue, addEstimatedOldValues, addEstimatedOldValues, addsAnyValue, addToReplaceDelta, addValuesToAdd, addValuesToAdd, addValuesToDelete, addValuesToDelete, addValueToAdd, addValueToDelete, addValueToReplace, applyDefinition, applyTo, applyTo, applyTo, applyTo, applyToMatchingPath, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, clear, clearValuesToAdd, clearValuesToDelete, clearValuesToReplace, cloneWithChangedParentPath, contains, contains, createReverseDelta, debugDump, distributeReplace, equals, equivalent, filterValues, findValueToAddOrReplace, foreach, getAnyValue, getDefinition, getElementName, getEstimatedOldValues, getItemNew, getItemNew, getItemNewMatchingPath, getParentPath, getPath, getPrismContext, getSubDelta, getValueChanges, getValuesToAdd, getValuesToDelete, getValuesToReplace, hasCompleteDefinition, isAdd, isApplicableTo, isDelete, isEmpty, isImmutable, isInFactEmpty, isRaw, isRedundant, isRedundant, isReplace, isValueToAdd, isValueToAdd, isValueToDelete, isValueToDelete, isValueToReplace, isValueToReplace, merge, mergeValuesToAdd, mergeValuesToAdd, mergeValuesToDelete, mergeValuesToDelete, mergeValuesToReplace, mergeValuesToReplace, mergeValueToAdd, mergeValueToDelete, mergeValueToReplace, narrow, narrow, normalize, removeValueToAdd, removeValueToDelete, removeValueToReplace, resetValuesToAdd, resetValuesToDelete, resetValuesToReplace, revive, setElementName, setEstimatedOldValues, setImmutable, setOriginTypeRecursive, setParentPath, setValuesToReplace, setValuesToReplace, setValueToReplace, setValueToReplace, simplify, size, toDeltaSetTriple, toDeltaSetTriple, toString, validate, validate, validateValues, validateValues
-
-
-
-
Constructor Detail
-
ReferenceDeltaImpl
public ReferenceDeltaImpl(PrismReferenceDefinition itemDefinition, PrismContext prismContext)
-
ReferenceDeltaImpl
public ReferenceDeltaImpl(ItemPath propertyPath, PrismReferenceDefinition itemDefinition, PrismContext prismContext)
-
ReferenceDeltaImpl
public ReferenceDeltaImpl(ItemPath parentPath, QName name, PrismReferenceDefinition itemDefinition, PrismContext prismContext)
-
-
Method Detail
-
getItemClass
public Class<PrismReference> getItemClass()
- Specified by:
getItemClass
in interfaceItemDelta<PrismReferenceValue,PrismReferenceDefinition>
- Specified by:
getItemClass
in interfaceReferenceDelta
- Specified by:
getItemClass
in classItemDeltaImpl<PrismReferenceValue,PrismReferenceDefinition>
-
setDefinition
public void setDefinition(PrismReferenceDefinition definition)
- Specified by:
setDefinition
in interfaceItemDelta<PrismReferenceValue,PrismReferenceDefinition>
- Specified by:
setDefinition
in interfaceReferenceDelta
- Overrides:
setDefinition
in classItemDeltaImpl<PrismReferenceValue,PrismReferenceDefinition>
-
applyDefinition
public void applyDefinition(PrismReferenceDefinition definition) throws SchemaException
- Specified by:
applyDefinition
in interfaceItemDelta<PrismReferenceValue,PrismReferenceDefinition>
- Specified by:
applyDefinition
in interfaceReferenceDelta
- Overrides:
applyDefinition
in classItemDeltaImpl<PrismReferenceValue,PrismReferenceDefinition>
- Throws:
SchemaException
-
isApplicableToType
public boolean isApplicableToType(Item item)
- Specified by:
isApplicableToType
in interfaceReferenceDelta
- Specified by:
isApplicableToType
in classItemDeltaImpl<PrismReferenceValue,PrismReferenceDefinition>
-
clone
public ReferenceDeltaImpl clone()
- Specified by:
clone
in interfaceItemDelta<PrismReferenceValue,PrismReferenceDefinition>
- Specified by:
clone
in interfaceReferenceDelta
- Specified by:
clone
in classItemDeltaImpl<PrismReferenceValue,PrismReferenceDefinition>
-
copyValues
protected void copyValues(ReferenceDeltaImpl clone)
-
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)
-
-