public class InternalUser extends InternalDirectoryEntity<InternalUserAttribute> implements TimestampedUser
| Modifier and Type | Class and Description |
|---|---|
static class |
InternalUser.MutableField |
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) |
getAttributes, getDirectory, getDirectoryIdgetCreatedDate, getId, getName, getUpdatedDate, isActive, setActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNowclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDirectoryId, getNamegetDirectoryId, isActive, isMarkedAsDeletedgetCreatedDate, 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 List<InternalUser.MutableField> 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 © 2024 Atlassian. All rights reserved.