|
||||||||||
| 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 (client side).
| Constructor Summary | |
|---|---|
UserEntity(String name,
String firstName,
String lastName,
String displayName,
String emailAddress,
PasswordEntity password,
boolean active)
|
|
UserEntity(String name,
String firstName,
String lastName,
String displayName,
String emailAddress,
PasswordEntity password,
boolean active,
String key)
|
|
| Method Summary | |
|---|---|
int |
compareTo(com.atlassian.crowd.embedded.api.User user)
|
boolean |
equals(Object o)
|
MultiValuedAttributeEntityList |
getAttributes()
|
long |
getDirectoryId()
Deprecated. this method has never returned the directoryId and its existence violates the directory encapsulation. It will be removed in future versions. |
String |
getDisplayName()
|
String |
getEmailAddress()
|
String |
getExternalId()
The user key at the server is the externalId at the client. |
String |
getFirstName()
|
Set<String> |
getKeys()
|
String |
getLastName()
|
String |
getName()
|
PasswordEntity |
getPassword()
|
String |
getValue(String key)
|
Set<String> |
getValues(String key)
|
int |
hashCode()
|
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,
String key)
public UserEntity(String name,
String firstName,
String lastName,
String displayName,
String emailAddress,
PasswordEntity password,
boolean active)
| Method Detail |
|---|
public String getDisplayName()
getDisplayName in interface com.atlassian.crowd.embedded.api.Userpublic String getFirstName()
public String getLastName()
public String getEmailAddress()
getEmailAddress in interface com.atlassian.crowd.embedded.api.Userpublic PasswordEntity getPassword()
public boolean isActive()
isActive in interface com.atlassian.crowd.embedded.api.Userpublic String getName()
getName in interface DirectoryEntitygetName in interface Principalpublic void setAttributes(MultiValuedAttributeEntityList attributes)
public MultiValuedAttributeEntityList getAttributes()
public Set<String> getValues(String key)
getValues in interface com.atlassian.crowd.embedded.api.Attributespublic String getValue(String key)
getValue in interface com.atlassian.crowd.embedded.api.Attributespublic Set<String> getKeys()
getKeys in interface com.atlassian.crowd.embedded.api.Attributespublic boolean isEmpty()
isEmpty in interface com.atlassian.crowd.embedded.api.Attributes@Deprecated public long getDirectoryId()
getDirectoryId in interface com.atlassian.crowd.embedded.api.UsergetDirectoryId in interface DirectoryEntity0public int compareTo(com.atlassian.crowd.embedded.api.User user)
compareTo in interface com.atlassian.crowd.embedded.api.UsercompareTo in interface Comparable<com.atlassian.crowd.embedded.api.User>public String getExternalId()
public boolean equals(Object o)
equals in interface com.atlassian.crowd.embedded.api.Userequals in interface DirectoryEntityequals in interface Principalequals in class Objectpublic int hashCode()
hashCode in interface com.atlassian.crowd.embedded.api.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 | |||||||||