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 Details

    • MatchingUtil

      public MatchingUtil()
  • Method Details

    • 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