Class MatchingUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.MatchingUtil
-
public class MatchingUtil extends Object
TEMPORARY implementation! This class contains various hacking util methods helping during development of ID Match correlation.
-
-
Constructor Summary
Constructors Constructor Description MatchingUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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).static Set<String>
getValuesForPath(PrismObject<?> object, ItemPath path)
static Set<String>
getValuesForPath(ObjectType object, Object... pathComponents)
-
-
-
Method Detail
-
getSingleValuedProperties
public static List<PrismProperty<?>> getSingleValuedProperties(@NotNull @NotNull ObjectType object)
Extracts properties suitable for matching (single-valued).
-
getValuesForPath
public static Set<String> getValuesForPath(ObjectType object, Object... pathComponents)
-
getValuesForPath
public static Set<String> getValuesForPath(PrismObject<?> object, ItemPath path)
-
getRealValuesForPath
public static Set<?> getRealValuesForPath(Containerable containerable, ItemPath path)
-
findProperty
@Nullable public static @Nullable PrismProperty<?> findProperty(ObjectType object, ItemPath path)
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
-
-