|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.user.DelegatingApplicationUser
public class DelegatingApplicationUser
An ApplicationUser comprising of a String key and an embedded crowd User.
Constructor Summary | |
---|---|
DelegatingApplicationUser(String key,
com.atlassian.crowd.embedded.api.User user)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
Implementations must ensure equality based on getKey(). |
long |
getDirectoryId()
|
com.atlassian.crowd.embedded.api.User |
getDirectoryUser()
|
String |
getDisplayName()
Returns the display name of the user. |
String |
getEmailAddress()
|
String |
getKey()
Returns the key which distinguishes the ApplicationUser as unique. |
String |
getName()
Synonym for ApplicationUser.getUsername() and implementation of Principal.getName() . |
String |
getUsername()
|
int |
hashCode()
Implementations must produce a hashcode based on getKey(). |
boolean |
isActive()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DelegatingApplicationUser(String key, com.atlassian.crowd.embedded.api.User user)
Method Detail |
---|
public String getKey()
ApplicationUser
User
s with the same username (ignoring case) across all user
directories.
getKey
in interface ApplicationUser
public boolean isActive()
isActive
in interface ApplicationUser
true if this user is active.
public String getEmailAddress()
getEmailAddress
in interface ApplicationUser
public String getDisplayName()
ApplicationUser
getDisplayName
in interface ApplicationUser
public com.atlassian.crowd.embedded.api.User getDirectoryUser()
getDirectoryUser
in interface ApplicationUser
public String getUsername()
getUsername
in interface ApplicationUser
null
.ApplicationUser.getName()
public String getName()
ApplicationUser
ApplicationUser.getUsername()
and implementation of Principal.getName()
.
getName
in interface ApplicationUser
getName
in interface Principal
null
.ApplicationUser.getUsername()
public long getDirectoryId()
getDirectoryId
in interface ApplicationUser
public boolean equals(Object obj)
ApplicationUser
equals
in interface ApplicationUser
equals
in interface Principal
equals
in class Object
obj
- object to compare to.
true
if and only if the key matches.public int hashCode()
ApplicationUser
hashCode
in interface ApplicationUser
hashCode
in interface Principal
hashCode
in class Object
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 |