public class UserWithAttributesAdapter extends Object implements UserWithAttributes
All attributes on this object are obtained directly from the Crowd server.
| Constructor and Description |
|---|
UserWithAttributesAdapter(SOAPPrincipal principal) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(User user)
CompareTo must be compatible with the equals() and hashCode() methods
|
long |
getDirectoryId() |
String |
getDisplayName() |
String |
getEmailAddress() |
String |
getExternalId() |
String |
getFirstName() |
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getLastName() |
String |
getName() |
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.
|
boolean |
isActive() |
boolean |
isEmpty() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodepublic UserWithAttributesAdapter(SOAPPrincipal principal)
public Set<String> getValues(String key)
AttributesgetValues in interface Attributeskey - the key to retrieve the values forpublic String getValue(String key)
Attributesnull if there is no value.getValue in interface Attributeskey - the key to retrieve the value fornull if there is no valuepublic Set<String> getKeys()
AttributesgetKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributespublic String getFirstName()
public String getLastName()
public String getExternalId()
public long getDirectoryId()
getDirectoryId in interface UsergetDirectoryId in interface DirectoryEntitypublic boolean isActive()
public String getEmailAddress()
getEmailAddress in interface Userpublic String getDisplayName()
getDisplayName in interface Userpublic int compareTo(User user)
UsercompareTo in interface UsercompareTo in interface Comparable<User>public String getName()
getName in interface DirectoryEntitygetName in interface PrincipalCopyright © 2019 Atlassian. All rights reserved.