Class ObjectDeltaCollectionsUtil
- java.lang.Object
-
- com.evolveum.midpoint.prism.delta.ObjectDeltaCollectionsUtil
-
public class ObjectDeltaCollectionsUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ObjectDeltaCollectionsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
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
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
public static void checkConsistence(Collection<? extends ObjectDelta<?>> deltas)
-
-