com.atlassian.crowd.model.user
Class InternalUser
java.lang.Object
com.atlassian.crowd.model.InternalEntity
com.atlassian.crowd.model.InternalDirectoryEntity
com.atlassian.crowd.model.user.InternalUser
- All Implemented Interfaces:
- User, DirectoryEntity, TimestampedEntity, TimestampedUser, Serializable, Comparable<User>, Principal
public class InternalUser
- extends InternalDirectoryEntity
- implements TimestampedUser
Encapsulates the concept of crowd user.
- See Also:
- Serialized Form
InternalUser
protected InternalUser()
InternalUser
public InternalUser(InternalEntityTemplate internalEntityTemplate,
Directory directory,
UserTemplate userTemplate,
PasswordCredential credential)
- This constructor is used by the importer only.
- Parameters:
internalEntityTemplate - template.directory - directory reference.userTemplate - user template.credential - encrypted credential.
InternalUser
public InternalUser(UserTemplateWithCredentialAndAttributes user,
Directory directory)
InternalUser
public InternalUser(User user,
Directory directory,
PasswordCredential credential)
- Constructor used for adding a new user.
- Parameters:
user - user template.directory - directory of user.credential - password of user.
updateDetailsFrom
public void updateDetailsFrom(User user)
renameTo
public void renameTo(String newUsername)
updateCredentialTo
public void updateCredentialTo(PasswordCredential newCredential,
int maxCredentialHistory)
setName
public void setName(String name)
- Overrides:
setName in class InternalEntity
getEmailAddress
public String getEmailAddress()
- Specified by:
getEmailAddress in interface User
getFirstName
public String getFirstName()
getLastName
public String getLastName()
getExternalId
public String getExternalId()
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in interface User
getLowerEmailAddress
public String getLowerEmailAddress()
getLowerFirstName
public String getLowerFirstName()
getLowerLastName
public String getLowerLastName()
getLowerDisplayName
public String getLowerDisplayName()
getLowerName
public String getLowerName()
getCredential
public PasswordCredential getCredential()
getCredentialRecords
public List<InternalUserCredentialRecord> getCredentialRecords()
getCredentialHistory
public List<PasswordCredential> getCredentialHistory()
getAttributes
public Set<InternalUserAttribute> getAttributes()
equals
public boolean equals(Object o)
- Specified by:
equals in interface User- Specified by:
equals in interface DirectoryEntity- Specified by:
equals in interface Principal- Specified by:
equals in class InternalEntity
hashCode
public int hashCode()
- Specified by:
hashCode in interface User- Specified by:
hashCode in interface DirectoryEntity- Specified by:
hashCode in interface Principal- Specified by:
hashCode in class InternalEntity
compareTo
public int compareTo(User other)
- Specified by:
compareTo in interface User- Specified by:
compareTo in interface Comparable<User>
toString
public String toString()
- Specified by:
toString in interface Principal- Overrides:
toString in class Object
Copyright © 2016 Atlassian. All Rights Reserved.