Class UserEntity
java.lang.Object
com.atlassian.crowd.integration.rest.entity.UserEntity
- All Implemented Interfaces:
Attributes,User,UserWithAttributes,DirectoryEntity,TimestampedEntity,TimestampedUser,User,UserWithAttributes,Comparable<User>,Principal
Represents a User entity (client side).
- Since:
- v2.1
-
Constructor Summary
ConstructorsConstructorDescriptionUserEntity(String name, String firstName, String lastName, String displayName, String emailAddress, PasswordEntity password, boolean active) UserEntity(String name, String firstName, String lastName, String displayName, String emailAddress, PasswordEntity password, boolean active, boolean isPasswordEncrypted) UserEntity(String name, String firstName, String lastName, String displayName, String emailAddress, PasswordEntity password, boolean active, String key, Date createdDate, Date updatedDate) UserEntity(String name, String firstName, String lastName, String displayName, String emailAddress, PasswordEntity password, boolean active, String key, Date createdDate, Date updatedDate, boolean isPasswordEncrypted) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanlongDeprecated.this method has never returned the directoryId and its existence violates the directory encapsulation.The user key at the server is the externalId at the client.getKeys()getName()inthashCode()booleanisActive()booleanisEmpty()static UserEntitynewMinimalInstance(String username) Creates a new minimal user instance.voidsetAttributes(MultiValuedAttributeEntityList attributes) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.crowd.embedded.api.User
isMarkedAsDeleted
-
Constructor Details
-
UserEntity
-
UserEntity
-
UserEntity
-
UserEntity
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein interfaceUser
-
getFirstName
- Specified by:
getFirstNamein interfaceUser
-
getLastName
- Specified by:
getLastNamein interfaceUser
-
getEmailAddress
- Specified by:
getEmailAddressin interfaceUser
-
getPassword
-
getEncryptedPassword
-
isActive
public boolean isActive() -
getName
- Specified by:
getNamein interfaceDirectoryEntity- Specified by:
getNamein interfacePrincipal
-
getCreatedDate
- Specified by:
getCreatedDatein interfaceTimestampedEntity
-
getUpdatedDate
- Specified by:
getUpdatedDatein interfaceTimestampedEntity
-
setAttributes
-
getAttributes
-
getValues
- Specified by:
getValuesin interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getKeys
- Specified by:
getKeysin interfaceAttributes
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceAttributes
-
getDirectoryId
Deprecated.this method has never returned the directoryId and its existence violates the directory encapsulation. It will be removed in future versions.- Specified by:
getDirectoryIdin interfaceDirectoryEntity- Specified by:
getDirectoryIdin interfaceUser- Returns:
- always
0
-
compareTo
- Specified by:
compareToin interfaceComparable<User>- Specified by:
compareToin interfaceUser
-
getExternalId
The user key at the server is the externalId at the client.- Specified by:
getExternalIdin interfaceUser
-
equals
-
hashCode
public int hashCode() -
toString
-
newMinimalInstance
Creates a new minimal user instance.- Parameters:
username- username for the user- Returns:
- minimal user instance
-