Class User

    • Constructor Summary

      Constructors 
      Constructor and Description
      User()
      Initialises a user with default values.
      User(java.lang.Long id, java.lang.String name, Attachment photo, boolean agent, java.lang.Long organizationId, java.util.List<java.lang.String> tags, java.util.Map<java.lang.String,java.lang.String> userFields)
      Initialises a user with given values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o) 
      java.lang.Long getId()
      Get the id of the user.
      java.lang.String getName()
      Get the name of the user.
      java.lang.Long getOrganizationId()
      Get the organization id of the user.
      Attachment getPhoto()
      Get avatar of the user.
      java.util.List<java.lang.String> getTags()
      Gets the list of tags associated with the user
      java.util.Map<java.lang.String,java.lang.String> getUserFields()
      Get a map of user fields, associated with the user.
      int hashCode() 
      boolean isAgent()
      Is the user an agent.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • User

        public User(java.lang.Long id,
                    java.lang.String name,
                    Attachment photo,
                    boolean agent,
                    java.lang.Long organizationId,
                    java.util.List<java.lang.String> tags,
                    java.util.Map<java.lang.String,java.lang.String> userFields)
        Initialises a user with given values.
      • User

        public User()
        Initialises a user with default values.
    • Method Detail

      • getId

        public java.lang.Long getId()
        Get the id of the user.
        Returns:
        the user's Id
      • getName

        public java.lang.String getName()
        Get the name of the user.
        Returns:
        the user's name
      • getPhoto

        public Attachment getPhoto()
        Get avatar of the user.
        Returns:
        the user's avatar
      • isAgent

        public boolean isAgent()
        Is the user an agent.
        Returns:
        true if the user is an agent
      • getOrganizationId

        public java.lang.Long getOrganizationId()
        Get the organization id of the user.
        Returns:
        the organization id of the user
      • getTags

        public java.util.List<java.lang.String> getTags()
        Gets the list of tags associated with the user
        Returns:
        the list of tags associated with the user
      • getUserFields

        public java.util.Map<java.lang.String,java.lang.String> getUserFields()
        Get a map of user fields, associated with the user.
        Returns:
        A map containing user fields.
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object