Modifier and Type | Field and Description |
---|---|
protected String |
_email
The email of this principal.
|
protected String |
_firstName
The first name of this principal.
|
protected UserIdentity |
_identity
The identity of this principal.
|
protected String |
_lastName
The last name of this principal.
|
protected UserDirectory |
_userDirectory
The user directory this user belongs to.
|
Constructor and Description |
---|
User(String login,
String populationId)
Construct a new UserPrincipal, associated with the specified login et population id.
|
User(UserIdentity identity)
Construct a new UserPrincipal, associated with the specified identity.
|
User(UserIdentity identity,
String lastName,
String firstName,
String email,
UserDirectory userDirectory)
Construct a new UserPrincipal, associated with a last name, a first name,
an email and identified by a login.
|
Modifier and Type | Method and Description |
---|---|
protected String |
_getFullName(boolean firstLast)
The full name of the user represented by this Principal.
|
boolean |
equals(Object another)
Test if two principal are equals.
|
String |
getEmail()
The email of the user represented by this Principal.
|
String |
getFirstName()
The first name of the user
|
String |
getFullName()
The fullname of this user.
|
UserIdentity |
getIdentity()
The identity of the user.
|
String |
getLastName()
The last name of the user
|
String |
getName() |
String |
getSortableName()
The fullname to use to display if sort is needed.
|
UserDirectory |
getUserDirectory()
The user directory this user belongs to.
|
int |
hashCode() |
String |
toString()
Return a String representation of this object, which exposes only
information that should be public.
|
protected UserIdentity _identity
protected String _firstName
protected UserDirectory _userDirectory
public User(String login, String populationId)
login
- The login of the principal.populationId
- The id of the populationpublic User(UserIdentity identity)
identity
- The identity of this user. Cannot be nullpublic User(UserIdentity identity, String lastName, String firstName, String email, UserDirectory userDirectory)
identity
- The identity of this user. Cannot be nulllastName
- The last namefirstName
- The first nameemail
- The emailuserDirectory
- The user directory the use rbelongs to. Can be null.public UserIdentity getIdentity()
public String getLastName()
public String getFirstName()
public String getEmail()
public String getFullName()
public String getSortableName()
public UserDirectory getUserDirectory()
protected String _getFullName(boolean firstLast)
firstLast
- Define the name order if the full name. If true, first name then last name. If false, the contrary.public String toString()