com.atlassian.crowd.plugin.rest.entity
Class UserEntity
java.lang.Object
com.atlassian.crowd.plugin.rest.entity.UserEntity
- All Implemented Interfaces:
- NamedEntity
@Expander(value=UserEntityExpander.class)
public class UserEntity
- extends Object
- implements NamedEntity
Represents a User entity.
- Since:
- v2.1
ATTRIBUTES_FIELD_NAME
public static final String ATTRIBUTES_FIELD_NAME
- Name of the attributes field.
- See Also:
- Constant Field Values
UserEntity
public UserEntity(String name,
String firstName,
String lastName,
String displayName,
String emailAddress,
PasswordEntity password,
Boolean active,
com.atlassian.plugins.rest.common.Link link)
getDisplayName
public String getDisplayName()
getFirstName
public String getFirstName()
getLastName
public String getLastName()
setEmail
public void setEmail(String email)
getEmail
public String getEmail()
setPassword
public void setPassword(PasswordEntity password)
getPassword
public PasswordEntity getPassword()
setActive
public void setActive(boolean active)
isActive
public Boolean isActive()
setName
public void setName(String name)
getName
public String getName()
- Specified by:
getName
in interface NamedEntity
setAttributes
public void setAttributes(MultiValuedAttributeEntityList attributes)
getAttributes
public MultiValuedAttributeEntityList getAttributes()
newMinimalUserEntity
public static UserEntity newMinimalUserEntity(String name,
String applicationName,
com.atlassian.plugins.rest.common.Link link)
- Creates a UserEntity 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=".
- Returns:
- UserEntity
toString
public String toString()
- Overrides:
toString
in class Object
setLink
public void setLink(com.atlassian.plugins.rest.common.Link link)
getLink
public com.atlassian.plugins.rest.common.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
Copyright © 2013 Atlassian. All Rights Reserved.