Class ItemDeltaUtil
- java.lang.Object
-
- com.evolveum.midpoint.prism.delta.ItemDeltaUtil
-
public class ItemDeltaUtil extends Object
Utilities related toItemDelta
andItemDeltaType
objects.
-
-
Constructor Summary
Constructors Constructor Description ItemDeltaUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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.
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(ItemDeltaType itemDeltaType)
-
toDeltaSetTriple
public static <IV extends PrismValue,ID extends ItemDefinition<?>> PrismValueDeltaSetTriple<IV> toDeltaSetTriple(Item<IV,ID> itemOld, ItemDelta<IV,ID> delta) throws SchemaException
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)
-
-