com.atlassian.crowd.plugin.rest.entity
Class UserEntity
java.lang.Object
com.atlassian.crowd.plugin.rest.entity.UserEntity
@Expander(value=UserEntityExpander.class)
public class UserEntity
- extends java.lang.Object
Represents a User entity.
- Since:
- v2.1
Constructor Summary |
UserEntity(java.lang.String name,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String displayName,
java.lang.String emailAddress,
PasswordEntity password,
java.lang.Boolean active,
com.atlassian.plugins.rest.common.Link link)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ATTRIBUTES_FIELD_NAME
public static final java.lang.String ATTRIBUTES_FIELD_NAME
- Name of the attributes field.
- See Also:
- Constant Field Values
UserEntity
public UserEntity(java.lang.String name,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String displayName,
java.lang.String emailAddress,
PasswordEntity password,
java.lang.Boolean active,
com.atlassian.plugins.rest.common.Link link)
getDisplayName
public java.lang.String getDisplayName()
getFirstName
public java.lang.String getFirstName()
getLastName
public java.lang.String getLastName()
setEmail
public void setEmail(java.lang.String email)
getEmail
public java.lang.String getEmail()
setPassword
public void setPassword(PasswordEntity password)
getPassword
public PasswordEntity getPassword()
setActive
public void setActive(boolean active)
isActive
public java.lang.Boolean isActive()
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
setAttributes
public void setAttributes(AttributeEntityList attributes)
getAttributes
public AttributeEntityList getAttributes()
newMinimalUserEntity
public static UserEntity newMinimalUserEntity(java.lang.String name,
java.lang.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 java.lang.String toString()
- Overrides:
toString
in class java.lang.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 © 2010 Atlassian. All Rights Reserved.