public interface ApplicationUser extends Principal, WithId, WithKey, Serializable
User
, which represents
a user in a user directory. An ApplicationUser encompasses all users with the same
username (ignoring case) across all directories.
Note that the v6.0 version of this interface differs from the v5.x experimental version
in one important regard: the v5.x version extended the User
interface. Unfortunately,
the two interfaces have incompatible contracts for equals
,
so they have been divided.
This incompatibility could lead, for example, to duplicate members in a Set
if you were to mix the two implementations. Developers writing plugins that target
JIRA 5.x should be careful not to mix ApplicationUser objects with other implementations
of User
; otherwise, unexpected results can occur (and it won't be compatible
with 6.0).
If you want to access the mapping between user keys and usernames directly,
use the UserKeyService
.
UserKeyService
ID_COMPARATOR
Modifier and Type | Method and Description |
---|---|
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
getUsername() and implementation of Principal.getName() . |
String |
getUsername() |
int |
hashCode()
Implementations must produce a hashcode based on getKey().
|
boolean |
isActive() |
String getKey()
User
s with the same username (ignoring case) across all user
directories.String getUsername()
null
.getName()
String getName()
getUsername()
and implementation of Principal.getName()
.getName
in interface Principal
null
.getUsername()
long getDirectoryId()
boolean isActive()
true if this user is active.
String getEmailAddress()
String getDisplayName()
com.atlassian.crowd.embedded.api.User getDirectoryUser()
boolean equals(Object obj)
Copyright © 2002-2023 Atlassian. All Rights Reserved.