Class LinkRef


  • public final class LinkRef
    extends sailpoint.tools.Pair<String,​String>
    Implements a type-safe Link reference object, containing the application name and native identity of the Link.
    • Constructor Summary

      Constructors 
      Constructor Description
      LinkRef​(String applicationName, String nativeIdentity)
      Constructs a LinkRef object with the specified application name and native identity.
      LinkRef​(Map<String,​?> map)
      Constructs a LinkRef object from a map containing application name and native identity.
      LinkRef​(sailpoint.object.Link link)
      Constructs a LinkRef object from a Link object.
    • Constructor Detail

      • LinkRef

        public LinkRef​(String applicationName,
                       String nativeIdentity)
        Constructs a LinkRef object with the specified application name and native identity.
        Parameters:
        applicationName - the name of the application
        nativeIdentity - the native identity of the link
      • LinkRef

        public LinkRef​(Map<String,​?> map)
        Constructs a LinkRef object from a map containing application name and native identity.
        Parameters:
        map - a map containing the application name and native identity
      • LinkRef

        public LinkRef​(sailpoint.object.Link link)
        Constructs a LinkRef object from a Link object.
        Parameters:
        link - the Link object
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Returns true if this LinkRef is equal to another object.
        Overrides:
        equals in class sailpoint.tools.Pair<String,​String>
        Parameters:
        o - the object to compare with
        Returns:
        true if the objects are equal, false otherwise
      • hashCode

        public int hashCode()
        Returns the hash code of this LinkRef.
        Overrides:
        hashCode in class sailpoint.tools.Pair<String,​String>
        Returns:
        the hash code
      • resolve

        public sailpoint.object.Link resolve​(sailpoint.api.SailPointContext context)
                                      throws sailpoint.tools.GeneralException
        Resolves the link reference to a Link object.
        Parameters:
        context - the SailPointContext
        Returns:
        the resolved Link object
        Throws:
        sailpoint.tools.GeneralException - if an error occurs during resolution
      • toMap

        public Map<String,​StringtoMap()
        Converts the LinkRef object to a map representation.
        Returns:
        a map containing the application name and native identity
      • toString

        public String toString()
        Converts the LinkRef object to a string representation.
        Overrides:
        toString in class sailpoint.tools.Pair<String,​String>
        Returns:
        a string representation of the LinkRef object