Class MatchingUtil
java.lang.Object
com.evolveum.midpoint.schema.util.MatchingUtil
TEMPORARY implementation! This class contains various hacking util methods helping during development of ID Match correlation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyAttributes
(FocusType preFocus, ShadowType resourceObject) Copies attributes into focus object.static @Nullable PrismProperty<?>
findProperty
(ObjectType object, ItemPath path) Finds a property even if the path was reduced by removing all container IDs.static Set<?>
getRealValuesForPath
(Containerable containerable, ItemPath path) static List<PrismProperty<?>>
getSingleValuedProperties
(@NotNull ObjectType object) Extracts properties suitable for matching (single-valued).getValuesForPath
(PrismObject<?> object, ItemPath path) getValuesForPath
(ObjectType object, Object... pathComponents)
-
Constructor Details
-
MatchingUtil
public MatchingUtil()
-
-
Method Details
-
getSingleValuedProperties
Extracts properties suitable for matching (single-valued). -
getValuesForPath
-
getValuesForPath
-
getRealValuesForPath
-
findProperty
Finds a property even if the path was reduced by removing all container IDs. Returns the first property found. (Later we may combine all properties into single one.) -
copyAttributes
public static void copyAttributes(FocusType preFocus, ShadowType resourceObject) throws SchemaException Copies attributes into focus object. Candidate items are looked for in the root container and in the extension. They are matched using the item name. Type conversion (e.g. polystring <-> string) is attempted as well.- Throws:
SchemaException
-