Class UserNameIdPair

java.lang.Object
com.saperion.users.UserNameIdPair
All Implemented Interfaces:
Serializable

public class UserNameIdPair extends Object implements Serializable
A simple class that holds the two unique identifiers of a user administration entity.
See Also:
  • Field Details

  • Constructor Details

    • UserNameIdPair

      public UserNameIdPair(int id, String fullName)
  • Method Details

    • getId

      public int getId()
      Returns:
      The entities id
    • getFullName

      public String getFullName()
      Returns:
      The entities full name
    • isGroup

      public boolean isGroup()
      Returns:
      Whether the entity is a group.
    • isUser

      public boolean isUser()
      Returns:
      Whether the entity is a user.
    • isTenant

      public boolean isTenant()
      Returns:
      Whether the entity is a tenant.
    • isRole

      public boolean isRole()
      Returns:
      Whether the entity is a role.
    • isLocation

      public boolean isLocation()
      Returns:
      Whether the entity is a location.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object