public class InternalUser extends InternalDirectoryEntity<InternalUserAttribute> implements TimestampedUser
attributes, directoryactive, createdDate, id, name, updatedDate| Modifier | Constructor and Description |
|---|---|
protected |
InternalUser() |
|
InternalUser(InternalEntityTemplate internalEntityTemplate,
Directory directory,
UserTemplate userTemplate,
PasswordCredential credential)
This constructor is used by the importer only.
|
|
InternalUser(User user,
Directory directory,
PasswordCredential credential)
Constructor used for adding a new user.
|
|
InternalUser(UserTemplateWithCredentialAndAttributes user,
Directory directory) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(User other)
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().
|
PasswordCredential |
getCredential() |
List<PasswordCredential> |
getCredentialHistory() |
List<InternalUserCredentialRecord> |
getCredentialRecords() |
String |
getDisplayName() |
String |
getEmailAddress() |
String |
getExternalId() |
String |
getFirstName() |
String |
getLastName() |
String |
getLowerDisplayName() |
String |
getLowerEmailAddress() |
String |
getLowerFirstName() |
String |
getLowerLastName() |
String |
getLowerName() |
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
void |
renameTo(String newUsername) |
void |
setName(String name) |
String |
toString() |
void |
updateCredentialTo(PasswordCredential newCredential,
int maxCredentialHistory) |
void |
updateDetailsFrom(User user) |
getAttributes, getDirectory, getDirectoryIdgetCreatedDate, getId, getName, getUpdatedDate, isActive, setActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNowclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDirectoryId, getNamegetDirectoryId, isActivegetCreatedDate, getUpdatedDateprotected InternalUser()
public InternalUser(InternalEntityTemplate internalEntityTemplate, Directory directory, UserTemplate userTemplate, PasswordCredential credential)
internalEntityTemplate - template.directory - directory reference.userTemplate - user template.credential - encrypted credential.public InternalUser(UserTemplateWithCredentialAndAttributes user, Directory directory)
public InternalUser(User user, Directory directory, PasswordCredential credential)
user - user template.directory - directory of user.credential - password of user.public void updateDetailsFrom(User user)
public void renameTo(String newUsername)
public void updateCredentialTo(PasswordCredential newCredential, int maxCredentialHistory)
public void setName(String name)
setName in class InternalEntitypublic String getEmailAddress()
getEmailAddress in interface Userpublic String getFirstName()
public String getLastName()
public String getExternalId()
public String getDisplayName()
getDisplayName in interface Userpublic String getLowerEmailAddress()
public String getLowerFirstName()
public String getLowerLastName()
public String getLowerDisplayName()
public String getLowerName()
public PasswordCredential getCredential()
public List<InternalUserCredentialRecord> getCredentialRecords()
public List<PasswordCredential> getCredentialHistory()
public boolean equals(Object o)
DirectoryEntityequals in interface Userequals in interface DirectoryEntityequals in interface Principalequals in class InternalEntityo - object to compare to.true if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntityhashCode in interface UserhashCode in interface DirectoryEntityhashCode in interface PrincipalhashCode in class InternalEntitypublic int compareTo(User other)
UsercompareTo in interface UsercompareTo in interface Comparable<User>Copyright © 2016 Atlassian. All rights reserved.