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, wait
getLdapName
public LDAPUserWithAttributes(String dn, UserTemplateWithAttributes user)
public String getDn()
LDAPDirectoryEntity
getDn
in interface LDAPDirectoryEntity
public long getDirectoryId()
getDirectoryId
in interface User
getDirectoryId
in interface DirectoryEntity
public String getName()
getName
in interface DirectoryEntity
getName
in interface Principal
public boolean isActive()
public String getEmailAddress()
getEmailAddress
in interface User
public String getFirstName()
public String getLastName()
public String getDisplayName()
getDisplayName
in interface User
public Set<String> getValues(String name)
Attributes
getValues
in interface Attributes
name
- the key to retrieve the values forpublic String getValue(String name)
Attributes
null
if there is no value.getValue
in interface Attributes
name
- 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 getExternalId()
public boolean equals(Object o)
DirectoryEntity
equals
in interface User
equals
in interface DirectoryEntity
equals
in interface Principal
equals
in class Object
o
- object to compare to.true
if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntity
public int compareTo(User other)
User
compareTo
in interface User
compareTo
in interface Comparable<User>
Copyright © 2020 Atlassian. All rights reserved.