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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetLogin()Get the login of the userGetGet the user population the user belongs tointhashCode()static UserIdentitystringToUserIdentity(String string) Returns theUserIdentityfrom its string representationtoString()static StringuserIdentityToString(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 theUserIdentityfrom 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
-