Class SimpleObjectMergeOperation
java.lang.Object
com.evolveum.midpoint.schema.merger.BaseMergeOperation<ObjectType>
com.evolveum.midpoint.schema.merger.SimpleObjectMergeOperation
-
Constructor Summary
ConstructorDescriptionSimpleObjectMergeOperation
(@Nullable OriginMarker originMarker, @NotNull ObjectType target, @NotNull ObjectType source) -
Method Summary
Modifier and TypeMethodDescriptionstatic <O extends ObjectType>
booleanisMergeSupported
(@NotNull PrismObject<O> target) Returns true if the merge is supported (and was reviewed, tested) for the given object type.static <O extends ObjectType>
voidmerge
(@NotNull PrismObject<O> target, @NotNull PrismObject<O> source) Methods inherited from class com.evolveum.midpoint.schema.merger.BaseMergeOperation
createPathMap, execute, hasValue
-
Constructor Details
-
SimpleObjectMergeOperation
public SimpleObjectMergeOperation(@Nullable @Nullable OriginMarker originMarker, @NotNull @NotNull ObjectType target, @NotNull @NotNull ObjectType source)
-
-
Method Details
-
isMergeSupported
public static <O extends ObjectType> boolean isMergeSupported(@NotNull @NotNull PrismObject<O> target) Returns true if the merge is supported (and was reviewed, tested) for the given object type. Note: Naive/simple merge will work for all object types, however merge might create more duplicates for values (properties, containers) where natural key wasn't properly defined.- Type Parameters:
O
-- Parameters:
target
-- Returns:
-
merge
public static <O extends ObjectType> void merge(@NotNull @NotNull PrismObject<O> target, @NotNull @NotNull PrismObject<O> source) throws ConfigurationException, SchemaException
-