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, wait
equals, hashCode
public UserWithAttributesAdapter(SOAPPrincipal principal)
public Set<String> getValues(String key)
Attributes
getValues
in interface Attributes
key
- the key to retrieve the values forpublic String getValue(String key)
Attributes
null
if there is no value.getValue
in interface Attributes
key
- the key to retrieve the value fornull
if there is no valuepublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic String getFirstName()
public String getLastName()
public String getExternalId()
public long getDirectoryId()
getDirectoryId
in interface User
getDirectoryId
in interface DirectoryEntity
public boolean isActive()
public String getEmailAddress()
getEmailAddress
in interface User
public String getDisplayName()
getDisplayName
in interface User
public int compareTo(User user)
User
compareTo
in interface User
compareTo
in interface Comparable<User>
public String getName()
getName
in interface DirectoryEntity
getName
in interface Principal
Copyright © 2020 Atlassian. All rights reserved.