public final class ImmutableUser extends Object implements User
| Constructor and Description |
|---|
ImmutableUser(long directoryId,
String name,
String displayName,
String emailAddress,
boolean active,
String firstName,
String lastName,
String externalId) |
ImmutableUser(User user) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(User user) |
boolean |
equals(Object o)
Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
|
long |
getDirectoryId() |
String |
getDisplayName() |
String |
getEmailAddress() |
String |
getExternalId() |
String |
getFirstName() |
String |
getLastName() |
String |
getName() |
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
boolean |
isActive() |
public ImmutableUser(User user)
public long getDirectoryId()
getDirectoryId in interface UsergetDirectoryId in interface DirectoryEntitypublic String getName()
getName in interface DirectoryEntitygetName in interface Principalpublic String getEmailAddress()
getEmailAddress in interface Userpublic String getDisplayName()
getDisplayName in interface Userpublic String getFirstName()
public String getLastName()
public String getExternalId()
public boolean equals(Object o)
DirectoryEntityequals in interface Userequals in interface DirectoryEntityequals in interface Principalequals in class Objecto - object to compare to.true if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntityCopyright © 2017 Atlassian. All rights reserved.