Class ItemDeltaCollectionsUtil
java.lang.Object
com.evolveum.midpoint.prism.delta.ItemDeltaCollectionsUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
accept
(Collection<? extends ItemDelta> modifications, Visitor visitor, ItemPath path, boolean recursive) static void
addAll
(Collection<? extends ItemDelta> modifications, Collection<? extends ItemDelta> deltasToAdd) static void
addNotEquivalent
(Collection<? extends ItemDelta> modifications, Collection<? extends ItemDelta> deltasToAdd) static void
applyDefinitionIfPresent
(Collection<? extends ItemDelta> deltas, PrismObjectDefinition definition, boolean tolerateNoDefinition) static void
applyTo
(Collection<? extends ItemDelta> deltas, PrismContainer propertyContainer) static void
applyTo
(Collection<? extends ItemDelta> deltas, PrismContainerValue propertyContainerValue) static void
checkConsistence
(Collection<? extends ItemDelta> deltas) static void
checkConsistence
(Collection<? extends ItemDelta> deltas, boolean requireDefinition, boolean prohibitRaw, ConsistencyCheckScope scope) static void
checkConsistence
(Collection<? extends ItemDelta> deltas, ConsistencyCheckScope scope) static <D extends ItemDelta<?,
?>>
Collection<D>cloneCollection
(Collection<D> orig) static <X extends Containerable>
ContainerDelta<X>findContainerDelta
(Collection<? extends ItemDelta> deltas, ItemPath propertyPath) static <DD extends ItemDelta>
DDfindItemDelta
(Collection<? extends ItemDelta> deltas, ItemPath propertyPath, Class<DD> deltaType, boolean strict) static <D extends ItemDelta>
DfindItemDelta
(Collection<? extends ItemDelta> deltas, QName itemName, Class<D> deltaType) static @NotNull Collection<? extends ItemDelta<?,
?>> findItemDeltasSubPath
(Collection<? extends ItemDelta<?, ?>> deltas, ItemPath itemPath) static <T> PropertyDelta<T>
findPropertyDelta
(Collection<? extends ItemDelta> deltas, ItemPath propertyPath) static ReferenceDelta
findReferenceModification
(Collection<? extends ItemDelta> deltas, QName itemName) static boolean
hasEquivalent
(Collection<? extends ItemDelta> col, ItemDelta delta) static void
merge
(Collection<? extends ItemDelta> modifications, ItemDelta delta) static void
mergeAll
(Collection<? extends ItemDelta<?, ?>> modifications, Collection<? extends ItemDelta<?, ?>> deltasToMerge) static <D extends ItemDelta>
voidremoveItemDelta
(Collection<? extends ItemDelta> deltas, ItemDelta deltaToRemove) static <D extends ItemDelta>
voidremoveItemDelta
(Collection<? extends ItemDelta> deltas, ItemPath propertyPath, Class<D> deltaType)
-
Constructor Details
-
ItemDeltaCollectionsUtil
public ItemDeltaCollectionsUtil()
-
-
Method Details
-
findItemDelta
public static <DD extends ItemDelta> DD findItemDelta(Collection<? extends ItemDelta> deltas, ItemPath propertyPath, Class<DD> deltaType, boolean strict) -
applyDefinitionIfPresent
public static void applyDefinitionIfPresent(Collection<? extends ItemDelta> deltas, PrismObjectDefinition definition, boolean tolerateNoDefinition) throws SchemaException - Throws:
SchemaException
-
findPropertyDelta
public static <T> PropertyDelta<T> findPropertyDelta(Collection<? extends ItemDelta> deltas, ItemPath propertyPath) -
findContainerDelta
public static <X extends Containerable> ContainerDelta<X> findContainerDelta(Collection<? extends ItemDelta> deltas, ItemPath propertyPath) -
findItemDeltasSubPath
@NotNull public static @NotNull Collection<? extends ItemDelta<?,?>> findItemDeltasSubPath(Collection<? extends ItemDelta<?, ?>> deltas, ItemPath itemPath) -
removeItemDelta
public static <D extends ItemDelta> void removeItemDelta(Collection<? extends ItemDelta> deltas, ItemPath propertyPath, Class<D> deltaType) -
removeItemDelta
public static <D extends ItemDelta> void removeItemDelta(Collection<? extends ItemDelta> deltas, ItemDelta deltaToRemove) -
checkConsistence
-
checkConsistence
public static void checkConsistence(Collection<? extends ItemDelta> deltas, ConsistencyCheckScope scope) -
checkConsistence
public static void checkConsistence(Collection<? extends ItemDelta> deltas, boolean requireDefinition, boolean prohibitRaw, ConsistencyCheckScope scope) -
applyTo
public static void applyTo(Collection<? extends ItemDelta> deltas, PrismContainer propertyContainer) throws SchemaException - Throws:
SchemaException
-
applyTo
public static void applyTo(Collection<? extends ItemDelta> deltas, PrismContainerValue propertyContainerValue) throws SchemaException - Throws:
SchemaException
-
accept
public static void accept(Collection<? extends ItemDelta> modifications, Visitor visitor, ItemPath path, boolean recursive) -
cloneCollection
-
hasEquivalent
-
addAll
public static void addAll(Collection<? extends ItemDelta> modifications, Collection<? extends ItemDelta> deltasToAdd) -
addNotEquivalent
public static void addNotEquivalent(Collection<? extends ItemDelta> modifications, Collection<? extends ItemDelta> deltasToAdd) -
merge
-
mergeAll
public static void mergeAll(Collection<? extends ItemDelta<?, ?>> modifications, Collection<? extends ItemDelta<?, ?>> deltasToMerge) -
findItemDelta
public static <D extends ItemDelta> D findItemDelta(Collection<? extends ItemDelta> deltas, QName itemName, Class<D> deltaType) -
findReferenceModification
public static ReferenceDelta findReferenceModification(Collection<? extends ItemDelta> deltas, QName itemName)
-