com.atlassian.jira.user.ApplicationUser |
Known Indirect Subclasses
|
Represents a person who uses JIRA. This differs from a User
, which represents
a user in a user directory. An ApplicationUser encompasses all users with the same
username (ignoring case) across all directories.
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).
ApplicationUsers
is a utility class that allows you to easily switch between
ApplicationUser
and User
. If you want to access the mapping between
user keys and usernames directly, use the UserKeyService
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Implementations must ensure equality based on getKey().
| |||||||||||
Returns the display name of the user.
| |||||||||||
Returns the key which distinguishes the ApplicationUser as unique.
| |||||||||||
Synonym for
getUsername() and implementation of getName() . | |||||||||||
Implementations must produce a hashcode based on getKey().
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface java.security.Principal |
Implementations must ensure equality based on getKey().
obj | object to compare to. |
---|
true
if and only if the key matches.
Returns the display name of the user. This is sometimes referred to as "full name".
Returns the key which distinguishes the ApplicationUser as unique. The same key is
shared by all User
s with the same username (ignoring case) across all user
directories.
Synonym for getUsername()
and implementation of getName()
.
null
.Implementations must produce a hashcode based on getKey().
true if this user is active.