Class GitLabUser

  • All Implemented Interfaces:
    GitUser

    public class GitLabUser
    extends Object
    implements GitUser
    A user for a remote GitLab service.
    • Method Detail

      • getAttributes

        public Map<String,​Object> getAttributes()
        Returns a read-only map with all the raw properties for the user.
        Specified by:
        getAttributes in interface GitUser
        Returns:
        a read-only map with all the raw properties for the user.
      • getID

        public String getID()
        Returns the ID of this user.
        Specified by:
        getID in interface GitUser
        Returns:
        the ID of this user.
      • getUserName

        public String getUserName()
        Returns the user name of this user.
        Specified by:
        getUserName in interface GitUser
        Returns:
        the user name of this user.
      • geFullName

        public String geFullName()
        Returns the full name of this user.
        Specified by:
        geFullName in interface GitUser
        Returns:
        the full name of this user. If not vailable then null is returned.
      • getService

        public GitLab getService()
        Returns the service associated with this entity.
        Returns:
        the service associated with this entity.
      • getSession

        public GitLabSession getSession()
        Returns the session associated with this entity.
        Returns:
        the session associated with this entity.
      • toAttributeMap

        protected static Map<String,​Object> toAttributeMap​(com.fasterxml.jackson.databind.JsonNode node)
        Reads all the attributes of the given object and puts them in the resulting map.
        Parameters:
        node - the node to read the attributes from
        Returns:
        the map with all the attributes from the given node
        Throws:
        NullPointerException - if the given node is null