public interface ItemDelta<V extends PrismValue,D extends ItemDefinition> extends Itemable, DebugDumpable, Visitable, PathVisitable, Foreachable<V>, Serializable
INDENT_STRING
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor) |
void |
accept(Visitor visitor,
boolean includeOldValues) |
void |
accept(Visitor visitor,
ItemPath path,
boolean recursive) |
void |
addEstimatedOldValue(V newValue) |
void |
addEstimatedOldValues(Collection<V> newValues) |
void |
addEstimatedOldValues(V... newValues) |
boolean |
addsAnyValue() |
void |
addToReplaceDelta() |
void |
addValuesToAdd(Collection<V> newValues) |
void |
addValuesToAdd(V... newValues) |
void |
addValuesToDelete(Collection<V> newValues) |
void |
addValuesToDelete(V... newValues) |
void |
addValueToAdd(V newValue) |
void |
addValueToDelete(V newValue) |
void |
addValueToReplace(V newValue) |
void |
applyDefinition(D definition) |
void |
applyDefinition(D itemDefinition,
boolean force) |
void |
applyTo(Item item) |
void |
applyTo(Item item,
ParameterizedEquivalenceStrategy strategy) |
void |
applyTo(PrismContainerValue containerValue) |
void |
applyTo(PrismContainerValue containerValue,
ParameterizedEquivalenceStrategy strategy) |
void |
applyToMatchingPath(Item item,
ParameterizedEquivalenceStrategy strategy)
Applies delta to item were path of the delta and path of the item matches (skips path checks).
|
void |
assertDefinitions(boolean tolarateRawValues,
String sourceDescription) |
void |
assertDefinitions(String sourceDescription) |
void |
checkConsistence() |
void |
checkConsistence(boolean requireDefinition,
boolean prohibitRaw,
ConsistencyCheckScope scope) |
void |
checkConsistence(ConsistencyCheckScope scope) |
void |
clear() |
void |
clearValuesToAdd() |
void |
clearValuesToDelete() |
void |
clearValuesToReplace() |
ItemDelta<V,D> |
clone() |
ItemDelta<V,D> |
cloneWithChangedParentPath(ItemPath newParentPath) |
boolean |
contains(ItemDelta<V,D> other)
Returns true if the other delta is a complete subset of this delta.
|
boolean |
contains(ItemDelta<V,D> other,
EquivalenceStrategy strategy)
Returns true if the other delta is a complete subset of this delta.
|
ItemDelta<V,D> |
createReverseDelta() |
String |
debugDump(int indent) |
void |
distributeReplace(Collection<V> existingValues)
Distributes the replace values of this delta to add and delete with
respect to provided existing values.
|
boolean |
equals(Object obj) |
boolean |
equivalent(ItemDelta other)
Deltas are equivalent if they have the same result when
applied to an object.
|
void |
filterValues(Function<V,Boolean> function) |
V |
findValueToAddOrReplace(V value) |
void |
foreach(Processor<V> processor)
Will call processor for every element in the instance.
|
V |
getAnyValue() |
D |
getDefinition() |
ItemName |
getElementName() |
Collection<V> |
getEstimatedOldValues()
Returns estimated state of the old value before the delta is applied.
|
Class<? extends Item> |
getItemClass() |
Item<V,D> |
getItemNew()
Returns the "new" state of the property - the state that would be after
the delta is applied.
|
Item<V,D> |
getItemNew(Item<V,D> itemOld)
Returns the "new" state of the property - the state that would be after
the delta is applied.
|
Item<V,D> |
getItemNewMatchingPath(Item<V,D> itemOld) |
ItemPath |
getParentPath() |
ItemPath |
getPath() |
PrismContext |
getPrismContext() |
ItemDelta<?,?> |
getSubDelta(ItemPath path) |
Collection<V> |
getValueChanges(PlusMinusZero mode) |
Collection<V> |
getValuesToAdd() |
Collection<V> |
getValuesToDelete() |
Collection<V> |
getValuesToReplace() |
boolean |
hasCompleteDefinition() |
boolean |
isAdd() |
boolean |
isApplicableTo(Item item) |
boolean |
isDelete() |
boolean |
isEmpty() |
boolean |
isImmutable() |
boolean |
isInFactEmpty() |
boolean |
isRaw() |
boolean |
isRedundant(PrismObject<? extends Objectable> object,
boolean assumeMissingItems)
Checks if the delta is redundant w.r.t.
|
boolean |
isRedundant(PrismObject<? extends Objectable> object,
Comparator<V> comparator,
boolean assumeMissingItems) |
boolean |
isReplace() |
boolean |
isValueToAdd(V value) |
boolean |
isValueToAdd(V value,
boolean ignoreMetadata) |
boolean |
isValueToDelete(V value) |
boolean |
isValueToDelete(V value,
boolean ignoreMetadata) |
boolean |
isValueToReplace(V value) |
boolean |
isValueToReplace(V value,
boolean ignoreMetadata) |
void |
merge(ItemDelta<V,D> deltaToMerge)
Merge specified delta to this delta.
|
void |
mergeValuesToAdd(Collection<V> newValues) |
void |
mergeValuesToAdd(V[] newValues) |
void |
mergeValuesToDelete(Collection<V> newValues) |
void |
mergeValuesToDelete(V[] newValues) |
void |
mergeValuesToReplace(Collection<V> newValues) |
void |
mergeValuesToReplace(V[] newValues) |
void |
mergeValueToAdd(V newValue) |
void |
mergeValueToDelete(V newValue) |
void |
mergeValueToReplace(V newValue) |
ItemDelta<V,D> |
narrow(PrismObject<? extends Objectable> object,
boolean assumeMissingItems)
Filters out all delta values that are meaningless to apply.
|
ItemDelta<V,D> |
narrow(PrismObject<? extends Objectable> object,
Comparator<V> comparator,
boolean assumeMissingItems)
Filters out all delta values that are meaningless to apply.
|
void |
normalize() |
boolean |
removeValueToAdd(PrismValue valueToRemove) |
boolean |
removeValueToDelete(PrismValue valueToRemove) |
boolean |
removeValueToReplace(PrismValue valueToRemove) |
void |
resetValuesToAdd() |
void |
resetValuesToDelete() |
void |
resetValuesToReplace() |
void |
revive(PrismContext prismContext) |
void |
setDefinition(D definition) |
void |
setElementName(QName elementName) |
void |
setEstimatedOldValues(Collection<V> estimatedOldValues) |
void |
setImmutable(boolean immutable) |
void |
setOriginTypeRecursive(OriginType originType)
Set origin type to all values and subvalues
|
void |
setParentPath(ItemPath parentPath) |
void |
setValuesToReplace(Collection<V> newValues) |
void |
setValuesToReplace(V... newValues) |
void |
setValueToReplace()
Sets empty value to replace.
|
void |
setValueToReplace(V newValue) |
void |
simplify()
Transforms the delta to the simplest (and safest) form.
|
int |
size() |
PrismValueDeltaSetTriple<V> |
toDeltaSetTriple() |
PrismValueDeltaSetTriple<V> |
toDeltaSetTriple(Item<V,D> itemOld) |
String |
toString() |
void |
validate() |
void |
validate(String contextDescription) |
void |
validateValues(ItemDeltaValidator<V> validator) |
void |
validateValues(ItemDeltaValidator<V> validator,
Collection<V> oldValues) |
debugDump, debugDumpLazily, debugDumpLazily
ItemName getElementName()
getElementName
in interface Itemable
void setElementName(QName elementName)
ItemPath getParentPath()
void setParentPath(ItemPath parentPath)
D getDefinition()
getDefinition
in interface Itemable
void setDefinition(D definition)
void accept(Visitor visitor, boolean includeOldValues)
int size()
void accept(Visitor visitor, ItemPath path, boolean recursive)
accept
in interface PathVisitable
void applyDefinition(D definition) throws SchemaException
SchemaException
boolean hasCompleteDefinition()
PrismContext getPrismContext()
getPrismContext
in interface Itemable
Collection<V> getValuesToAdd()
void clearValuesToAdd()
Collection<V> getValuesToDelete()
void clearValuesToDelete()
Collection<V> getValuesToReplace()
void clearValuesToReplace()
void addValuesToAdd(Collection<V> newValues)
void addValuesToAdd(V... newValues)
void addValueToAdd(V newValue)
boolean removeValueToAdd(PrismValue valueToRemove)
boolean removeValueToDelete(PrismValue valueToRemove)
boolean removeValueToReplace(PrismValue valueToRemove)
void mergeValuesToAdd(Collection<V> newValues)
void mergeValuesToAdd(V[] newValues)
void mergeValueToAdd(V newValue)
void addValuesToDelete(Collection<V> newValues)
void addValuesToDelete(V... newValues)
void addValueToDelete(V newValue)
void mergeValuesToDelete(Collection<V> newValues)
void mergeValuesToDelete(V[] newValues)
void mergeValueToDelete(V newValue)
void resetValuesToAdd()
void resetValuesToDelete()
void resetValuesToReplace()
void setValuesToReplace(Collection<V> newValues)
void setValuesToReplace(V... newValues)
void setValueToReplace()
void setValueToReplace(V newValue)
void addValueToReplace(V newValue)
void mergeValuesToReplace(Collection<V> newValues)
void mergeValuesToReplace(V[] newValues)
void mergeValueToReplace(V newValue)
boolean isValueToAdd(V value)
boolean isValueToAdd(V value, boolean ignoreMetadata)
boolean isValueToDelete(V value)
boolean isValueToDelete(V value, boolean ignoreMetadata)
boolean isValueToReplace(V value)
boolean isValueToReplace(V value, boolean ignoreMetadata)
V getAnyValue()
boolean isEmpty()
boolean isInFactEmpty()
boolean addsAnyValue()
void foreach(Processor<V> processor)
Foreachable
foreach
in interface Foreachable<V extends PrismValue>
Collection<V> getEstimatedOldValues()
void setEstimatedOldValues(Collection<V> estimatedOldValues)
void addEstimatedOldValues(Collection<V> newValues)
void addEstimatedOldValues(V... newValues)
void addEstimatedOldValue(V newValue)
void normalize()
boolean isReplace()
boolean isAdd()
boolean isDelete()
void clear()
ItemDelta<V,D> narrow(PrismObject<? extends Objectable> object, boolean assumeMissingItems)
assumeMissingItems
- Assumes that some items in the object may be missing. So replacing them by null or deleting some
values from them cannot be narrowed out.ItemDelta<V,D> narrow(PrismObject<? extends Objectable> object, Comparator<V> comparator, boolean assumeMissingItems)
assumeMissingItems
- Assumes that some items in the object may be missing. So replacing them by null or deleting some
values from them cannot be narrowed out.boolean isRedundant(PrismObject<? extends Objectable> object, boolean assumeMissingItems)
assumeMissingItems
- Assumes that some items in the object may be missing. So delta that replaces them by null
or deletes some values from them cannot be considered redundant.boolean isRedundant(PrismObject<? extends Objectable> object, Comparator<V> comparator, boolean assumeMissingItems)
assumeMissingItems
- Assumes that some items in the object may be missing. So delta that replaces them by null
or deletes some values from them cannot be considered redundant.void validate() throws SchemaException
SchemaException
void validate(String contextDescription) throws SchemaException
SchemaException
void validateValues(ItemDeltaValidator<V> validator) throws SchemaException
SchemaException
void validateValues(ItemDeltaValidator<V> validator, Collection<V> oldValues) throws SchemaException
SchemaException
void checkConsistence()
void checkConsistence(ConsistencyCheckScope scope)
void checkConsistence(boolean requireDefinition, boolean prohibitRaw, ConsistencyCheckScope scope)
void distributeReplace(Collection<V> existingValues)
void merge(ItemDelta<V,D> deltaToMerge)
Collection<V> getValueChanges(PlusMinusZero mode)
void simplify()
void applyTo(PrismContainerValue containerValue) throws SchemaException
SchemaException
void applyTo(PrismContainerValue containerValue, ParameterizedEquivalenceStrategy strategy) throws SchemaException
SchemaException
void applyTo(Item item) throws SchemaException
SchemaException
void applyTo(Item item, ParameterizedEquivalenceStrategy strategy) throws SchemaException
SchemaException
void applyToMatchingPath(Item item, ParameterizedEquivalenceStrategy strategy) throws SchemaException
SchemaException
boolean isApplicableTo(Item item)
Item<V,D> getItemNew() throws SchemaException
SchemaException
Item<V,D> getItemNew(Item<V,D> itemOld) throws SchemaException
SchemaException
Item<V,D> getItemNewMatchingPath(Item<V,D> itemOld) throws SchemaException
SchemaException
boolean contains(ItemDelta<V,D> other)
boolean contains(ItemDelta<V,D> other, EquivalenceStrategy strategy)
PrismValueDeltaSetTriple<V> toDeltaSetTriple()
PrismValueDeltaSetTriple<V> toDeltaSetTriple(Item<V,D> itemOld)
void assertDefinitions(String sourceDescription) throws SchemaException
SchemaException
void assertDefinitions(boolean tolarateRawValues, String sourceDescription) throws SchemaException
SchemaException
boolean isRaw()
void revive(PrismContext prismContext) throws SchemaException
SchemaException
void applyDefinition(D itemDefinition, boolean force) throws SchemaException
SchemaException
boolean equivalent(ItemDelta other)
String debugDump(int indent)
debugDump
in interface DebugDumpable
void addToReplaceDelta()
void setOriginTypeRecursive(OriginType originType)
boolean isImmutable()
void setImmutable(boolean immutable)
Copyright © 2020 Evolveum. All rights reserved.