public interface User extends Comparable<User>, Principal
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(User user)
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().
|
default String |
getAccountId()
Returns the Atlassian Account ID for this user.
|
long |
getDirectoryId() |
String |
getDisplayName() |
String |
getEmailAddress() |
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
boolean |
isActive() |
boolean |
isLocalServiceDeskUser()
Local user support for Service Desk Customers.
|
long getDirectoryId()
@Nullable default String getAccountId()
Note that an AtlassianAccountID for a user can change under certain circumstances.
This can return null under a number of circumstances:
Note for implementors: you probably don't need to override the default behaviour of this method: it is derived from other values. In fact doing so could produce errors: especially while Horde still exists because it keeps values in the "externalId" column that are NOT the Atlassian Account.
isLocalServiceDeskUser(),
CrowdService.isIdentityPlatformEnabled()boolean isActive()
true if and only if the user is allowed to authenticate.String getEmailAddress()
String getDisplayName()
boolean isLocalServiceDeskUser()
boolean equals(Object o)
int hashCode()
int compareTo(User user)
compareTo in interface Comparable<User>Copyright © 2016 Atlassian. All Rights Reserved.