public class InternalUser extends InternalDirectoryEntity<InternalUserAttribute> implements TimestampedUser
attributes, directory
active, 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, getDirectoryId
getCreatedDate, getId, getName, getUpdatedDate, isActive, setActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNow
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDirectoryId, getName
getDirectoryId, isActive
getCreatedDate, getUpdatedDate
protected 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 InternalEntity
public String getEmailAddress()
getEmailAddress
in interface User
public String getFirstName()
public String getLastName()
public String getExternalId()
public String getDisplayName()
getDisplayName
in interface User
public 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)
DirectoryEntity
equals
in interface User
equals
in interface DirectoryEntity
equals
in interface Principal
equals
in class InternalEntity
o
- object to compare to.true
if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntity
hashCode
in interface User
hashCode
in interface DirectoryEntity
hashCode
in interface Principal
hashCode
in class InternalEntity
public int compareTo(User other)
User
compareTo
in interface User
compareTo
in interface Comparable<User>
Copyright © 2019 Atlassian. All rights reserved.