Class DeltaBuilder<C extends Containerable>
java.lang.Object
com.evolveum.midpoint.prism.impl.delta.builder.DeltaBuilder<C>
- All Implemented Interfaces:
S_ItemEntry
,S_MaybeAdd
,S_MaybeDelete
,S_ValuesEntry
@Experimental
public class DeltaBuilder<C extends Containerable>
extends Object
implements S_ItemEntry, S_MaybeDelete, S_MaybeAdd, S_ValuesEntry
Grammar
----
ObjectDelta ::= (ItemDelta)* ( 'OBJECT-DELTA(oid)' | 'ITEM-DELTA' | 'ITEM-DELTAS' )
ItemDelta ::= 'ITEM(...)' ( ( 'ADD-VALUES(...)' 'DELETE-VALUES(...)'? ) |
( 'DELETE-VALUES(...)' 'ADD-VALUES(...)'? ) | 'REPLACE-VALUES(...)' )
----
When combining DELETE and ADD prefer using DELETE first to match the actual behavior.
-
Constructor Summary
ConstructorDescriptionDeltaBuilder
(Class<C> objectClass, ItemDefinitionResolver itemDefinitionResolver) -
Method Summary
Modifier and TypeMethodDescriptionadd
(PrismValue... values) add
(Collection<? extends PrismValue> values) addRealValues
(Collection<?> realValues) asObjectDelta
(String oid) List<ObjectDelta<?>>
asObjectDeltas
(String oid) delete
(PrismValue... values) delete
(Collection<? extends PrismValue> values) deleteRealValues
(Collection<?> realValues) item
(ItemPath path, ItemDefinition definition) mod
(PlusMinusZero plusMinusZero, PrismValue... values) mod
(PlusMinusZero plusMinusZero, Object... realValues) Create proper modification type based on parameter.mod
(PlusMinusZero plusMinusZero, Collection<? extends PrismValue> values) modRealValues
(PlusMinusZero plusMinusZero, Collection<?> realValues) old
(PrismValue... values) old
(Collection<? extends PrismValue> values) oldObject
(Containerable object) The state of object before the delta is applied.<T> S_ValuesEntry
oldRealValue
(T realValue) oldRealValues
(Collection<?> realValues) Should we skip idempotent item deltas? (Default is `false`.)<T> S_ValuesEntry
property
(ItemPath path, PrismPropertyDefinition<T> definition) Can be used with dynamic paths.replace
(PrismValue... values) replace
(Collection<? extends PrismValue> values) replaceRealValues
(Collection<?> realValues) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.prism.delta.builder.S_ItemEntry
asObjectDeltaCast
-
Constructor Details
-
DeltaBuilder
public DeltaBuilder(Class<C> objectClass, ItemDefinitionResolver itemDefinitionResolver) throws SchemaException - Throws:
SchemaException
-
-
Method Details
-
getObjectClass
-
getPrismContext
-
optimizing
Description copied from interface:S_ItemEntry
Should we skip idempotent item deltas? (Default is `false`.)- Specified by:
optimizing
in interfaceS_ItemEntry
-
oldObject
Description copied from interface:S_ItemEntry
The state of object before the delta is applied. Used to compute estimatedOldValues.- Specified by:
oldObject
in interfaceS_ItemEntry
-
item
- Specified by:
item
in interfaceS_ItemEntry
-
item
- Specified by:
item
in interfaceS_ItemEntry
-
item
- Specified by:
item
in interfaceS_ItemEntry
-
item
- Specified by:
item
in interfaceS_ItemEntry
-
property
Description copied from interface:S_ItemEntry
Can be used with dynamic paths.- Specified by:
property
in interfaceS_ItemEntry
-
property
- Specified by:
property
in interfaceS_ItemEntry
-
property
- Specified by:
property
in interfaceS_ItemEntry
-
property
- Specified by:
property
in interfaceS_ItemEntry
-
asObjectDelta
- Specified by:
asObjectDelta
in interfaceS_ItemEntry
-
asObjectDeltas
- Specified by:
asObjectDeltas
in interfaceS_ItemEntry
-
asItemDelta
- Specified by:
asItemDelta
in interfaceS_ItemEntry
-
asItemDeltas
- Specified by:
asItemDeltas
in interfaceS_ItemEntry
-
add
- Specified by:
add
in interfaceS_MaybeAdd
- Specified by:
add
in interfaceS_ValuesEntry
-
addRealValues
- Specified by:
addRealValues
in interfaceS_MaybeAdd
- Specified by:
addRealValues
in interfaceS_ValuesEntry
-
add
- Specified by:
add
in interfaceS_MaybeAdd
- Specified by:
add
in interfaceS_ValuesEntry
-
add
- Specified by:
add
in interfaceS_MaybeAdd
- Specified by:
add
in interfaceS_ValuesEntry
-
old
- Specified by:
old
in interfaceS_ValuesEntry
-
oldRealValues
- Specified by:
oldRealValues
in interfaceS_ValuesEntry
-
oldRealValue
- Specified by:
oldRealValue
in interfaceS_ValuesEntry
-
old
- Specified by:
old
in interfaceS_ValuesEntry
-
old
- Specified by:
old
in interfaceS_ValuesEntry
-
delete
- Specified by:
delete
in interfaceS_MaybeDelete
- Specified by:
delete
in interfaceS_ValuesEntry
-
deleteRealValues
- Specified by:
deleteRealValues
in interfaceS_MaybeDelete
- Specified by:
deleteRealValues
in interfaceS_ValuesEntry
-
delete
- Specified by:
delete
in interfaceS_MaybeDelete
- Specified by:
delete
in interfaceS_ValuesEntry
-
delete
- Specified by:
delete
in interfaceS_MaybeDelete
- Specified by:
delete
in interfaceS_ValuesEntry
-
replace
- Specified by:
replace
in interfaceS_ValuesEntry
-
replaceRealValues
- Specified by:
replaceRealValues
in interfaceS_ValuesEntry
-
replace
- Specified by:
replace
in interfaceS_ValuesEntry
-
replace
- Specified by:
replace
in interfaceS_ValuesEntry
-
mod
Description copied from interface:S_ValuesEntry
Create proper modification type based on parameter. Plus means add, minus delete, zero means replace.- Specified by:
mod
in interfaceS_ValuesEntry
-
modRealValues
- Specified by:
modRealValues
in interfaceS_ValuesEntry
-
mod
- Specified by:
mod
in interfaceS_ValuesEntry
-
mod
- Specified by:
mod
in interfaceS_ValuesEntry
-