public class LDAPUserWithAttributes extends Object implements UserWithAttributes, LDAPDirectoryEntity
| Constructor and Description |
|---|
LDAPUserWithAttributes(String dn,
UserTemplateWithAttributes user) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(User other)
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().
|
long |
getDirectoryId() |
String |
getDisplayName() |
String |
getDn()
Gets the standardised distinguished name for the LDAP entity.
|
String |
getEmailAddress() |
String |
getExternalId() |
String |
getFirstName() |
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getLastName() |
String |
getName() |
String |
getValue(String name)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String name)
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() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLdapNamepublic LDAPUserWithAttributes(String dn, UserTemplateWithAttributes user)
public String getDn()
LDAPDirectoryEntitygetDn in interface LDAPDirectoryEntitypublic long getDirectoryId()
getDirectoryId in interface UsergetDirectoryId in interface DirectoryEntitypublic String getName()
getName in interface DirectoryEntitygetName in interface Principalpublic boolean isActive()
public String getEmailAddress()
getEmailAddress in interface Userpublic String getFirstName()
public String getLastName()
public String getDisplayName()
getDisplayName in interface Userpublic Set<String> getValues(String name)
AttributesgetValues in interface Attributesname - the key to retrieve the values forpublic String getValue(String name)
Attributesnull if there is no value.getValue in interface Attributesname - 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 getExternalId()
public boolean equals(Object o)
DirectoryEntityequals in interface Userequals in interface DirectoryEntityequals in interface Principalequals in class Objecto - object to compare to.true if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntitypublic int compareTo(User other)
UsercompareTo in interface UsercompareTo in interface Comparable<User>Copyright © 2018 Atlassian. All rights reserved.