Class GenericItemMerger
- java.lang.Object
-
- com.evolveum.midpoint.schema.merger.BaseItemMerger<Item<?,?>>
-
- com.evolveum.midpoint.schema.merger.GenericItemMerger
-
- All Implemented Interfaces:
ItemMerger
public class GenericItemMerger extends BaseItemMerger<Item<?,?>>
The generic item merger that follows these rules: 1. Matching property and reference values are overridden. 2. Matching container values are merged recursively (using configured mergers for children). What are _matching_ values? 1. For single-valued items the values at source and target sides are automatically considered matching. 2. For multi-valued items with a natural key defined, the values having the same key are considered matching. 3. For multi-valued items without a natural key, no values are matching.
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.schema.merger.BaseItemMerger
originMarker, VALUE_COMPARISON_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description GenericItemMerger(@Nullable OriginMarker originMarker, @NotNull PathKeyedMap<ItemMerger> childrenMergers)
GenericItemMerger(@Nullable OriginMarker originMarker, NaturalKey naturalKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
mergeInternal(@NotNull Item<?,?> targetItem, @NotNull Item<?,?> sourceItem)
-
Methods inherited from class com.evolveum.midpoint.schema.merger.BaseItemMerger
createMarkedClone, merge
-
-
-
-
Constructor Detail
-
GenericItemMerger
public GenericItemMerger(@Nullable @Nullable OriginMarker originMarker, @NotNull @NotNull PathKeyedMap<ItemMerger> childrenMergers)
-
GenericItemMerger
public GenericItemMerger(@Nullable @Nullable OriginMarker originMarker, NaturalKey naturalKey)
-
-
Method Detail
-
mergeInternal
protected void mergeInternal(@NotNull @NotNull Item<?,?> targetItem, @NotNull @NotNull Item<?,?> sourceItem) throws ConfigurationException, SchemaException
- Specified by:
mergeInternal
in classBaseItemMerger<Item<?,?>>
- Throws:
ConfigurationException
SchemaException
-
-