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.SerializableA 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 intBIT_MASK_GROUPstatic intBIT_MASK_LOCATIONstatic intBIT_MASK_ROLEstatic intBIT_MASK_TENANTstatic intBIT_MASK_USERstatic intBIT_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 booleanequals(java.lang.Object o)java.lang.StringgetFullName()intgetId()inthashCode()booleanisGroup()booleanisLocation()booleanisRole()booleanisTenant()booleanisUser()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-