Class UserEntity
java.lang.Object
com.atlassian.crowd.plugin.rest.entity.UserEntity
- All Implemented Interfaces:
NamedEntity
Represents a User entity (server side).
- Since:
- v2.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUserEntity(String name, String firstName, String lastName, String displayName, String emailAddress, PasswordEntity password, Boolean active, com.atlassian.plugins.rest.api.model.Link link, String key, Long directoryId, String directoryName, Date createdDate, Date updatedDate) UserEntity(String name, String firstName, String lastName, String displayName, String emailAddress, PasswordEntity password, Boolean active, com.atlassian.plugins.rest.api.model.Link link, String key, Long directoryId, String directoryName, Date createdDate, Date updatedDate, boolean isPasswordEncrypted) -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()getKey()com.atlassian.plugins.rest.api.model.LinkgetLink()getName()isActive()booleanDoes this object represent an expanded user, or does it only contain a username.static UserEntitynewMinimalUserEntity(String name, String applicationName, com.atlassian.plugins.rest.api.model.Link link) Creates aUserEntitywith the minimal amount of information required.voidsetActive(boolean active) voidsetAttributes(MultiValuedAttributeEntityList attributes) voidsetCreatedDate(Date createdDate) voidsetDirectoryId(Long directoryId) voidsetDirectoryName(String directoryName) voidvoidsetEncryptedPassword(PasswordEntity encryptedPassword) voidsetFirstName(String firstName) voidsetLastName(String lastName) voidsetLink(com.atlassian.plugins.rest.api.model.Link link) voidvoidsetPassword(PasswordEntity password) voidsetUpdatedDate(Date updatedDate) toString()
-
Field Details
-
ATTRIBUTES_FIELD_NAME
Name of the attributes field.- See Also:
-
-
Constructor Details
-
UserEntity
-
UserEntity
public UserEntity(String name, String firstName, String lastName, String displayName, String emailAddress, PasswordEntity password, Boolean active, com.atlassian.plugins.rest.api.model.Link link, String key, Long directoryId, String directoryName, Date createdDate, Date updatedDate, boolean isPasswordEncrypted)
-
-
Method Details
-
getDisplayName
-
getFirstName
-
getLastName
-
setEmail
-
getEmail
-
setPassword
-
getPassword
-
setEncryptedPassword
-
getEncryptedPassword
-
setActive
public void setActive(boolean active) -
isActive
-
setName
-
getName
- Specified by:
getNamein interfaceNamedEntity
-
setCreatedDate
-
getCreatedDate
-
setUpdatedDate
-
getUpdatedDate
-
setAttributes
-
getAttributes
-
getKey
-
getDirectoryName
-
setDirectoryName
-
setDirectoryId
-
getDirectoryId
-
setFirstName
-
setLastName
-
newMinimalUserEntity
public static UserEntity newMinimalUserEntity(String name, String applicationName, com.atlassian.plugins.rest.api.model.Link link) Creates aUserEntitywith the minimal amount of information required.- Parameters:
name- Username.applicationName- Name of the application.link- Link to the canonical representation of the user. E.g. "/user?username=<username>".- Returns:
- UserEntity
-
toString
-
setLink
public void setLink(com.atlassian.plugins.rest.api.model.Link link) -
getLink
public com.atlassian.plugins.rest.api.model.Link getLink() -
isExpanded
public boolean isExpanded()Does this object represent an expanded user, or does it only contain a username.- Returns:
- true if this object represents an expanded user
-