Class DeltaBuilder<T extends Containerable>
- java.lang.Object
 - 
- com.evolveum.midpoint.prism.impl.delta.builder.DeltaBuilder<T>
 
 
- 
- All Implemented Interfaces:
 S_ItemEntry,S_MaybeAdd,S_MaybeDelete,S_ValuesEntry
@Experimental public class DeltaBuilder<T 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. It is not possible to
 
- 
- 
Constructor Summary
Constructors Constructor Description DeltaBuilder(Class<T> objectClass, ComplexTypeDefinition containerCTD, PrismContext prismContext, List<ItemDelta<?,?>> deltas, ItemDelta currentDelta)DeltaBuilder(Class<T> objectClass, PrismContext prismContext) 
- 
Method Summary
- 
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 Detail
- 
DeltaBuilder
public DeltaBuilder(Class<T> objectClass, PrismContext prismContext) throws SchemaException
- Throws:
 SchemaException
 
- 
DeltaBuilder
public DeltaBuilder(Class<T> objectClass, ComplexTypeDefinition containerCTD, PrismContext prismContext, List<ItemDelta<?,?>> deltas, ItemDelta currentDelta)
 
 - 
 
- 
Method Detail
- 
getPrismContext
public PrismContext getPrismContext()
 
- 
deltaFor
public static <C extends Containerable> S_ItemEntry deltaFor(Class<C> objectClass, PrismContext prismContext) throws SchemaException
- Throws:
 SchemaException
 
- 
item
public S_ValuesEntry item(QName... names)
- Specified by:
 itemin interfaceS_ItemEntry
 
- 
item
public S_ValuesEntry item(Object... namesOrIds)
- Specified by:
 itemin interfaceS_ItemEntry
 
- 
item
public S_ValuesEntry item(ItemPath path)
- Specified by:
 itemin interfaceS_ItemEntry
 
- 
item
public S_ValuesEntry item(ItemPath path, ItemDefinition definition)
- Specified by:
 itemin interfaceS_ItemEntry
 
- 
property
public S_ValuesEntry property(QName... names)
Description copied from interface:S_ItemEntryCan be used with dynamic paths.- Specified by:
 propertyin interfaceS_ItemEntry
 
- 
property
public S_ValuesEntry property(Object... namesOrIds)
- Specified by:
 propertyin interfaceS_ItemEntry
 
- 
property
public S_ValuesEntry property(ItemPath path)
- Specified by:
 propertyin interfaceS_ItemEntry
 
- 
property
public <T> S_ValuesEntry property(ItemPath path, PrismPropertyDefinition<T> definition)
- Specified by:
 propertyin interfaceS_ItemEntry
 
- 
asObjectDelta
public ObjectDelta asObjectDelta(String oid)
- Specified by:
 asObjectDeltain interfaceS_ItemEntry
 
- 
asObjectDeltas
public List<ObjectDelta<?>> asObjectDeltas(String oid)
- Specified by:
 asObjectDeltasin interfaceS_ItemEntry
 
- 
asItemDelta
public ItemDelta asItemDelta()
- Specified by:
 asItemDeltain interfaceS_ItemEntry
 
- 
asItemDeltas
public List<ItemDelta<?,?>> asItemDeltas()
- Specified by:
 asItemDeltasin interfaceS_ItemEntry
 
- 
add
public S_MaybeDelete add(Object... realValues)
- Specified by:
 addin interfaceS_MaybeAdd- Specified by:
 addin interfaceS_ValuesEntry
 
- 
addRealValues
public S_MaybeDelete addRealValues(Collection<?> realValues)
- Specified by:
 addRealValuesin interfaceS_MaybeAdd- Specified by:
 addRealValuesin interfaceS_ValuesEntry
 
- 
add
public S_MaybeDelete add(PrismValue... values)
- Specified by:
 addin interfaceS_MaybeAdd- Specified by:
 addin interfaceS_ValuesEntry
 
- 
add
public S_MaybeDelete add(Collection<? extends PrismValue> values)
- Specified by:
 addin interfaceS_MaybeAdd- Specified by:
 addin interfaceS_ValuesEntry
 
- 
old
public S_ValuesEntry old(Object... realValues)
- Specified by:
 oldin interfaceS_ValuesEntry
 
- 
oldRealValues
public S_ValuesEntry oldRealValues(Collection<?> realValues)
- Specified by:
 oldRealValuesin interfaceS_ValuesEntry
 
- 
oldRealValue
public <T> S_ValuesEntry oldRealValue(T realValue)
- Specified by:
 oldRealValuein interfaceS_ValuesEntry
 
- 
old
public S_ValuesEntry old(PrismValue... values)
- Specified by:
 oldin interfaceS_ValuesEntry
 
- 
old
public S_ValuesEntry old(Collection<? extends PrismValue> values)
- Specified by:
 oldin interfaceS_ValuesEntry
 
- 
delete
public S_MaybeAdd delete(Object... realValues)
- Specified by:
 deletein interfaceS_MaybeDelete- Specified by:
 deletein interfaceS_ValuesEntry
 
- 
deleteRealValues
public S_MaybeAdd deleteRealValues(Collection<?> realValues)
- Specified by:
 deleteRealValuesin interfaceS_MaybeDelete- Specified by:
 deleteRealValuesin interfaceS_ValuesEntry
 
- 
delete
public S_MaybeAdd delete(PrismValue... values)
- Specified by:
 deletein interfaceS_MaybeDelete- Specified by:
 deletein interfaceS_ValuesEntry
 
- 
delete
public S_MaybeAdd delete(Collection<? extends PrismValue> values)
- Specified by:
 deletein interfaceS_MaybeDelete- Specified by:
 deletein interfaceS_ValuesEntry
 
- 
replace
public S_ItemEntry replace(Object... realValues)
- Specified by:
 replacein interfaceS_ValuesEntry
 
- 
replaceRealValues
public S_ItemEntry replaceRealValues(Collection<?> realValues)
- Specified by:
 replaceRealValuesin interfaceS_ValuesEntry
 
- 
replace
public S_ItemEntry replace(Collection<? extends PrismValue> values)
- Specified by:
 replacein interfaceS_ValuesEntry
 
- 
replace
public S_ItemEntry replace(PrismValue... values)
- Specified by:
 replacein interfaceS_ValuesEntry
 
- 
mod
public S_ItemEntry mod(PlusMinusZero plusMinusZero, Object... realValues)
Description copied from interface:S_ValuesEntryCreate proper modification type based on parameter. Plus means add, minus delete, zero means replace.- Specified by:
 modin interfaceS_ValuesEntry
 
- 
modRealValues
public S_ItemEntry modRealValues(PlusMinusZero plusMinusZero, Collection<?> realValues)
- Specified by:
 modRealValuesin interfaceS_ValuesEntry
 
- 
mod
public S_ItemEntry mod(PlusMinusZero plusMinusZero, Collection<? extends PrismValue> values)
- Specified by:
 modin interfaceS_ValuesEntry
 
- 
mod
public S_ItemEntry mod(PlusMinusZero plusMinusZero, PrismValue... values)
- Specified by:
 modin interfaceS_ValuesEntry
 
 - 
 
 -