|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.model.user.LDAPUserWithAttributes
public class LDAPUserWithAttributes
Constructor Summary | |
---|---|
LDAPUserWithAttributes(String dn,
UserTemplateWithAttributes user)
|
Method Summary | |
---|---|
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 |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LDAPUserWithAttributes(String dn, UserTemplateWithAttributes user)
Method Detail |
---|
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()
isActive
in interface User
true if and only if the user is allowed to authenticate.
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 for
public String getValue(String name)
Attributes
null
if there is no value.
getValue
in interface Attributes
name
- the key to retrieve the value for
null
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 boolean equals(Object o)
User
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 name.toLowerCase() of the directory entities match.public int hashCode()
User
hashCode
in interface User
hashCode
in interface DirectoryEntity
hashCode
in interface Principal
hashCode
in class Object
public int compareTo(User other)
User
compareTo
in interface User
compareTo
in interface Comparable<User>
public String toString()
toString
in interface Principal
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |