Class ItemDeltaUtil
java.lang.Object
com.evolveum.midpoint.prism.delta.ItemDeltaUtil
Utilities related to
ItemDelta
and ItemDeltaType
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <V extends PrismValue,
D extends ItemDefinition<?>>
ItemDelta<V,D> createAddDeltaFor
(Item<V, D> item) static <V extends PrismValue,
D extends ItemDefinition<?>>
ItemDelta<V,D> createAddDeltaFor
(Item<V, D> item, PrismValue value) static boolean
isEmpty
(ItemDeltaType itemDeltaType) static <IV extends PrismValue,
ID extends ItemDefinition<?>>
PrismValueDeltaSetTriple<IV>toDeltaSetTriple
(Item<IV, ID> itemOld, ItemDelta<IV, ID> delta) Converts the old state of an item and the delta into "plus/minus/zero" information.static <O extends Objectable>
PrismValueDeltaSetTriple<PrismObjectValue<O>>toDeltaSetTriple
(PrismObject<O> objectOld, ObjectDelta<O> delta) ThetoDeltaSetTriple(Item, ItemDelta)
for whole objects.
-
Constructor Details
-
ItemDeltaUtil
public ItemDeltaUtil()
-
-
Method Details
-
isEmpty
-
toDeltaSetTriple
public static <IV extends PrismValue,ID extends ItemDefinition<?>> PrismValueDeltaSetTriple<IV> toDeltaSetTriple(Item<IV, ID> itemOld, ItemDelta<IV, throws SchemaExceptionID> delta) Converts the old state of an item and the delta into "plus/minus/zero" information.- Throws:
SchemaException
-
toDeltaSetTriple
@Experimental public static <O extends Objectable> PrismValueDeltaSetTriple<PrismObjectValue<O>> toDeltaSetTriple(PrismObject<O> objectOld, ObjectDelta<O> delta) throws SchemaException ThetoDeltaSetTriple(Item, ItemDelta)
for whole objects. It is necessary mainly becauseObjectDelta
is not anItemDelta
(althoughPrismObject
is anItem
).- Throws:
SchemaException
-
createAddDeltaFor
public static <V extends PrismValue,D extends ItemDefinition<?>> ItemDelta<V,D> createAddDeltaFor(Item<V, D> item) -
createAddDeltaFor
public static <V extends PrismValue,D extends ItemDefinition<?>> ItemDelta<V,D> createAddDeltaFor(Item<V, D> item, PrismValue value)
-