@Expander(value=UserEntityExpander.class) public class UserEntity extends Object implements NamedEntity
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTES_FIELD_NAME
Name of the attributes field.
|
Constructor and Description |
---|
UserEntity(String name,
String firstName,
String lastName,
String displayName,
String emailAddress,
PasswordEntity password,
Boolean active,
com.atlassian.plugins.rest.common.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.common.Link link,
String key,
Long directoryId,
String directoryName,
Date createdDate,
Date updatedDate,
boolean isPasswordEncrypted) |
Modifier and Type | Method and Description |
---|---|
MultiValuedAttributeEntityList |
getAttributes() |
Date |
getCreatedDate() |
Long |
getDirectoryId() |
String |
getDirectoryName() |
String |
getDisplayName() |
String |
getEmail() |
PasswordEntity |
getEncryptedPassword() |
String |
getFirstName() |
String |
getKey() |
String |
getLastName() |
com.atlassian.plugins.rest.common.Link |
getLink() |
String |
getName() |
PasswordEntity |
getPassword() |
Date |
getUpdatedDate() |
Boolean |
isActive() |
boolean |
isExpanded()
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.common.Link link)
Creates a UserEntity 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 |
setEmail(String email) |
void |
setEncryptedPassword(PasswordEntity encryptedPassword) |
void |
setLink(com.atlassian.plugins.rest.common.Link link) |
void |
setName(String name) |
void |
setPassword(PasswordEntity password) |
void |
setUpdatedDate(Date updatedDate) |
String |
toString() |
public static final String ATTRIBUTES_FIELD_NAME
public UserEntity(String name, String firstName, String lastName, String displayName, String emailAddress, PasswordEntity password, Boolean active, com.atlassian.plugins.rest.common.Link link, String key, Long directoryId, String directoryName, Date createdDate, Date updatedDate)
public UserEntity(String name, String firstName, String lastName, String displayName, String emailAddress, PasswordEntity password, Boolean active, com.atlassian.plugins.rest.common.Link link, String key, Long directoryId, String directoryName, Date createdDate, Date updatedDate, boolean isPasswordEncrypted)
public String getDisplayName()
public String getFirstName()
public String getLastName()
public void setEmail(String email)
public String getEmail()
public void setPassword(PasswordEntity password)
public PasswordEntity getPassword()
public void setEncryptedPassword(PasswordEntity encryptedPassword)
public PasswordEntity getEncryptedPassword()
public void setActive(boolean active)
public Boolean isActive()
public void setName(String name)
public String getName()
getName
in interface NamedEntity
public void setCreatedDate(Date createdDate)
public Date getCreatedDate()
public void setUpdatedDate(Date updatedDate)
public Date getUpdatedDate()
public void setAttributes(MultiValuedAttributeEntityList attributes)
public MultiValuedAttributeEntityList getAttributes()
public String getKey()
public String getDirectoryName()
public void setDirectoryName(String directoryName)
public void setDirectoryId(Long directoryId)
public Long getDirectoryId()
public static UserEntity newMinimalUserEntity(String name, String applicationName, com.atlassian.plugins.rest.common.Link link)
name
- Username.applicationName
- Name of the application.link
- Link to the canonical representation of the user. E.g. "/user?username=<username>".public void setLink(com.atlassian.plugins.rest.common.Link link)
public com.atlassian.plugins.rest.common.Link getLink()
public boolean isExpanded()
Copyright © 2021 Atlassian. All rights reserved.