|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.rest.entity.UserEntity
public class UserEntity
Represents a User entity.
| Constructor Summary | |
|---|---|
UserEntity(String name,
String firstName,
String lastName,
String displayName,
String emailAddress,
PasswordEntity password,
boolean active)
|
|
| Method Summary | |
|---|---|
int |
compareTo(User user)
CompareTo must be compatible with the equals() and hashCode() methods |
boolean |
equals(Object o)
Implementations must ensure equality based on getDirectoryId() and case-insensitive getName(). |
MultiValuedAttributeEntityList |
getAttributes()
|
long |
getDirectoryId()
|
String |
getDisplayName()
|
String |
getEmailAddress()
|
String |
getFirstName()
|
Set<String> |
getKeys()
Gets all the keys of the attributes. |
String |
getLastName()
|
String |
getName()
|
PasswordEntity |
getPassword()
|
String |
getValue(String key)
Returns any value associated with the given key, returns null if there is no value. |
Set<String> |
getValues(String key)
Get all the values associated with a given key. |
int |
hashCode()
Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName(). |
boolean |
isActive()
|
boolean |
isEmpty()
|
static UserEntity |
newMinimalInstance(String username)
Creates a new minimal user instance. |
void |
setAttributes(MultiValuedAttributeEntityList attributes)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UserEntity(String name,
String firstName,
String lastName,
String displayName,
String emailAddress,
PasswordEntity password,
boolean active)
| Method Detail |
|---|
public String getDisplayName()
getDisplayName in interface Userpublic String getFirstName()
public String getLastName()
public String getEmailAddress()
getEmailAddress in interface Userpublic PasswordEntity getPassword()
public boolean isActive()
isActive in interface Usertrue if and only if the user is allowed to authenticate.public String getName()
getName in interface DirectoryEntitygetName in interface Principalpublic void setAttributes(MultiValuedAttributeEntityList attributes)
public MultiValuedAttributeEntityList getAttributes()
public Set<String> getValues(String key)
Attributes
getValues in interface Attributeskey - the key to retrieve the values for
public String getValue(String key)
Attributesnull if there is no value.
getValue in interface Attributeskey - the key to retrieve the value for
null if there is no valuepublic Set<String> getKeys()
Attributes
getKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributespublic long getDirectoryId()
getDirectoryId in interface UsergetDirectoryId in interface DirectoryEntitypublic int compareTo(User user)
User
compareTo in interface UsercompareTo in interface Comparable<User>public boolean equals(Object o)
User
equals in interface Userequals in interface DirectoryEntityequals in interface Principalequals in class Objecto - object to compare to.
true if and only if the directoryId
and name.toLowerCase() of the directory entities match.public int hashCode()
User
hashCode in interface UserhashCode in interface DirectoryEntityhashCode in interface PrincipalhashCode in class Objectpublic String toString()
toString in interface PrincipaltoString in class Objectpublic static UserEntity newMinimalInstance(String username)
username - username for the user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||