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
-
Constructor Summary
ConstructorDescriptionUserEntity
(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.Link
getLink()
getName()
isActive()
boolean
Does this object represent an expanded user, or does it only contain a username.static UserEntity
newMinimalUserEntity
(String name, String applicationName, com.atlassian.plugins.rest.api.model.Link link) Creates aUserEntity
with the minimal amount of information required.void
setActive
(boolean active) void
setAttributes
(MultiValuedAttributeEntityList attributes) void
setCreatedDate
(Date createdDate) void
setDirectoryId
(Long directoryId) void
setDirectoryName
(String directoryName) void
void
setEncryptedPassword
(PasswordEntity encryptedPassword) void
setFirstName
(String firstName) void
setLastName
(String lastName) void
setLink
(com.atlassian.plugins.rest.api.model.Link link) void
void
setPassword
(PasswordEntity password) void
setUpdatedDate
(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:
getName
in 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 aUserEntity
with 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
-