Class ItemDeltaCollectionsUtil
- java.lang.Object
-
- com.evolveum.midpoint.prism.delta.ItemDeltaCollectionsUtil
-
public class ItemDeltaCollectionsUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ItemDeltaCollectionsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 boolean
pathMatches(@NotNull Collection<? extends ItemDelta<?,?>> deltas, @NotNull ItemPath path, int segmentsToSkip, boolean exactMatch)
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)
-
-
-
Method Detail
-
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
public static void checkConsistence(Collection<? extends ItemDelta> deltas)
-
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
public static <D extends ItemDelta<?,?>> Collection<D> cloneCollection(Collection<D> orig)
-
hasEquivalent
public static boolean hasEquivalent(Collection<? extends ItemDelta> col, ItemDelta delta)
-
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
public static void merge(Collection<? extends ItemDelta> modifications, ItemDelta delta)
-
mergeAll
public static void mergeAll(Collection<? extends ItemDelta<?,?>> modifications, Collection<? extends ItemDelta<?,?>> deltasToMerge)
-
pathMatches
public static boolean pathMatches(@NotNull @NotNull Collection<? extends ItemDelta<?,?>> deltas, @NotNull @NotNull ItemPath path, int segmentsToSkip, boolean exactMatch)
-
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)
-
-