Package com.saperion.users
Class UserNameIdPair
- java.lang.Object
-
- com.saperion.users.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
-
-
Field Summary
Fields Modifier and Type Field Description static int
BIT_MASK_GROUP
static int
BIT_MASK_LOCATION
static int
BIT_MASK_ROLE
static int
BIT_MASK_TENANT
static int
BIT_MASK_USER
static int
BIT_MASK_VALID_FIELDS
-
Constructor Summary
Constructors Constructor Description UserNameIdPair(int id, java.lang.String fullName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getFullName()
int
getId()
int
hashCode()
boolean
isGroup()
boolean
isLocation()
boolean
isRole()
boolean
isTenant()
boolean
isUser()
java.lang.String
toString()
-
-
-
Field Detail
-
BIT_MASK_USER
public static final int BIT_MASK_USER
- See Also:
- Constant Field Values
-
BIT_MASK_TENANT
public static final int BIT_MASK_TENANT
- See Also:
- Constant Field Values
-
BIT_MASK_GROUP
public static final int BIT_MASK_GROUP
- See Also:
- Constant Field Values
-
BIT_MASK_ROLE
public static final int BIT_MASK_ROLE
- See Also:
- Constant Field Values
-
BIT_MASK_LOCATION
public static final int BIT_MASK_LOCATION
- See Also:
- Constant Field Values
-
BIT_MASK_VALID_FIELDS
public static final int BIT_MASK_VALID_FIELDS
- See Also:
- Constant Field Values
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-