Class IdentifierResolver


  • public class IdentifierResolver
    extends Object
    Class implements mapping algorithm for external assets elements (containers and items) and GUIDs assigned to objects stored in the repository.
    • Field Detail

      • NAME_SEPARATOR

        public static String NAME_SEPARATOR
    • Method Detail

      • addGuidForIdentifier

        public boolean addGuidForIdentifier​(String guid,
                                            String id)
        Add GUID for identifier that need to be resolved.
        Parameters:
        guid - to add.
        id - of the identifier.
        Returns:
        true if GUID was added for known identifier.
      • getIdFromQName

        public static String getIdFromQName​(String qName,
                                            String alias)
        Get compound identifier from qualified name.
        Parameters:
        qName - source of identifier.
        alias - optional.
        Returns:
        identifier.
      • required

        public boolean required()
        Check when asset identifiers need to be resolved.
        Returns:
        if asset references something then identifiers need to be resolved.
      • getItemGUIDs

        public List<String> getItemGUIDs​(AnalyticsMetadata item)
        Get GUIDs of the identifiers listed as sources of metadata.
        Parameters:
        item - referencing metadata
        Returns:
        list of GUIDs.