Package org.ametys.core.user
Class UserIdentity
java.lang.Object
org.ametys.core.user.UserIdentity
- Direct Known Subclasses:
LdapUserIdentity
Class containing a user identity, i.e. the login of the user and
the id of its user population.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getLogin()
Get the login of the userGetGet the user population the user belongs toint
hashCode()
static UserIdentity
stringToUserIdentity
(String string) Returns theUserIdentity
from its string representationtoString()
static String
userIdentityToString
(UserIdentity userIdentity) Gets a string representation of aUserIdentity
-
Constructor Details
-
UserIdentity
Constructs a user identity- Parameters:
login
- The login of the userpopulationId
- The id of the user population the user belongs to
-
-
Method Details
-
userIdentityToString
Gets a string representation of aUserIdentity
- Parameters:
userIdentity
- The user identity- Returns:
- The string representation of the user identity.
-
stringToUserIdentity
Returns theUserIdentity
from its string representation- Parameters:
string
- The string representation of the user identity- Returns:
- The user identity from its string representation
-
getLogin
Get the login of the user- Returns:
- The login of the user
-
getPopulationId
GetGet the user population the user belongs to- Returns:
- The id of the user population the user belongs to
-
hashCode
-
equals
-
toString
-