Class SingletonItemPathNaturalKeyImpl
- java.lang.Object
-
- com.evolveum.midpoint.schema.merger.key.SingletonItemPathNaturalKeyImpl
-
- All Implemented Interfaces:
NaturalKey
public class SingletonItemPathNaturalKeyImpl extends Object implements NaturalKey
Natural key consisting of a "singleton" item path (i.e. one that contains a single qualified name). Like the one used inResourceAttributeDefinitionType
. Assumptions: 1. the type of the key value isItemPathType
2. each container value to be merged must have the key value specified
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mergeMatchingKeys(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue)
If the source contains qualified version of the path, and the target does not, we replace the target value with the qualified version.static SingletonItemPathNaturalKeyImpl
of(@NotNull ItemName itemName)
boolean
valuesMatch(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue)
Returns `true` if the target and source container values match on their natural key.
-
-
-
Method Detail
-
of
public static SingletonItemPathNaturalKeyImpl of(@NotNull @NotNull ItemName itemName)
-
valuesMatch
public boolean valuesMatch(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) throws ConfigurationException
Description copied from interface:NaturalKey
Returns `true` if the target and source container values match on their natural key. (I.e. they have to be merged together.)- Specified by:
valuesMatch
in interfaceNaturalKey
- Throws:
ConfigurationException
-
mergeMatchingKeys
public void mergeMatchingKeys(PrismContainerValue<?> targetValue, PrismContainerValue<?> sourceValue) throws ConfigurationException
If the source contains qualified version of the path, and the target does not, we replace the target value with the qualified version.- Specified by:
mergeMatchingKeys
in interfaceNaturalKey
- Throws:
ConfigurationException
-
-