|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.model.user.LDAPUserWithAttributes
public class LDAPUserWithAttributes
| Constructor Summary | |
|---|---|
LDAPUserWithAttributes(java.lang.String dn,
UserTemplateWithAttributes user)
|
|
| Method Summary | |
|---|---|
int |
compareTo(User other)
CompareTo must be compatible with the equals() and hashCode() methods |
boolean |
equals(java.lang.Object o)
Implementations must ensure equality based on getDirectoryId() and case-insensitive getName(). |
long |
getDirectoryId()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getDn()
Gets the standardised distinguished name for the LDAP entity. |
java.lang.String |
getEmailAddress()
|
java.lang.String |
getFirstName()
|
java.util.Set<java.lang.String> |
getKeys()
Gets all the keys of the attributes. |
java.lang.String |
getLastName()
|
java.lang.String |
getName()
|
java.lang.String |
getValue(java.lang.String name)
Returns any value associated with the given key, returns null if there is no value. |
java.util.Set<java.lang.String> |
getValues(java.lang.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()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LDAPUserWithAttributes(java.lang.String dn,
UserTemplateWithAttributes user)
| Method Detail |
|---|
public java.lang.String getDn()
LDAPDirectoryEntity
getDn in interface LDAPDirectoryEntitypublic long getDirectoryId()
getDirectoryId in interface UsergetDirectoryId in interface DirectoryEntitypublic java.lang.String getName()
getName in interface DirectoryEntitygetName in interface java.security.Principalpublic boolean isActive()
isActive in interface Usertrue if and only if the user is allowed to authenticate.public java.lang.String getEmailAddress()
getEmailAddress in interface Userpublic java.lang.String getFirstName()
public java.lang.String getLastName()
public java.lang.String getDisplayName()
getDisplayName in interface Userpublic java.util.Set<java.lang.String> getValues(java.lang.String name)
Attributes
getValues in interface Attributesname - the key to retrieve the values for
public java.lang.String getValue(java.lang.String name)
Attributesnull if there is no value.
getValue in interface Attributesname - the key to retrieve the value for
null if there is no valuepublic java.util.Set<java.lang.String> getKeys()
Attributes
getKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributespublic boolean equals(java.lang.Object o)
User
equals in interface Userequals in interface DirectoryEntityequals in interface java.security.Principalequals in class java.lang.Objecto - 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 UserhashCode in interface DirectoryEntityhashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic int compareTo(User other)
User
compareTo in interface UsercompareTo in interface java.lang.Comparable<User>public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||