Class UserNameIdPair

  • All Implemented Interfaces:
    java.io.Serializable

    public class UserNameIdPair
    extends java.lang.Object
    implements java.io.Serializable
    A simple class that holds the two unique identifiers of a user administration entity.
    See Also:
    Serialized Form
    • Constructor Detail

      • UserNameIdPair

        public UserNameIdPair​(int id,
                              java.lang.String fullName)
    • Method Detail

      • getId

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

        public java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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