Class MatchingUtil


  • public class MatchingUtil
    extends Object
    TEMPORARY implementation! This class contains various hacking util methods helping during development of ID Match correlation.
    • Constructor Detail

      • MatchingUtil

        public MatchingUtil()
    • Method Detail

      • getSingleValuedProperties

        public static List<PrismProperty<?>> getSingleValuedProperties​(@NotNull
                                                                       @NotNull ObjectType object)
        Extracts properties suitable for matching (single-valued).
      • 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