Class ObjectDeltaCollectionsUtil
java.lang.Object
com.evolveum.midpoint.prism.delta.ObjectDeltaCollectionsUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkConsistence
(Collection<? extends ObjectDelta<?>> deltas) static <T extends Objectable>
ObjectDelta<T>summarize
(ObjectDelta<T>... deltas) Returns a delta that is a "sum" of all the deltas in the collection.static <T extends Objectable>
ObjectDelta<T>summarize
(List<ObjectDelta<T>> deltas) Returns a delta that is a "sum" of all the deltas in the collection.static <T extends Objectable>
ObjectDelta<T>union
(ObjectDelta<T>... deltas) Union of several object deltas.
-
Constructor Details
-
ObjectDeltaCollectionsUtil
public ObjectDeltaCollectionsUtil()
-
-
Method Details
-
summarize
@SafeVarargs public static <T extends Objectable> ObjectDelta<T> summarize(ObjectDelta<T>... deltas) throws SchemaException Returns a delta that is a "sum" of all the deltas in the collection. The deltas as processed as an ORDERED sequence. Therefore it correctly processes item overwrites and so on. It also means that if there is an ADD delta it has to be first.- Throws:
SchemaException
-
summarize
public static <T extends Objectable> ObjectDelta<T> summarize(List<ObjectDelta<T>> deltas) throws SchemaException Returns a delta that is a "sum" of all the deltas in the collection. The deltas as processed as an ORDERED sequence. Therefore it correctly processes item overwrites and so on. It also means that if there is an ADD delta it has to be first.- Throws:
SchemaException
-
union
@SafeVarargs public static <T extends Objectable> ObjectDelta<T> union(ObjectDelta<T>... deltas) throws SchemaException Union of several object deltas. The deltas are merged to create a single delta that contains changes from all the deltas. Union works on UNORDERED deltas.- Throws:
SchemaException
-
checkConsistence
-