com.atlassian.crowd.plugin.rest.entity
Class UserEntity

java.lang.Object
  extended by 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

Field Summary
static java.lang.String ATTRIBUTES_FIELD_NAME
          Name of the attributes field.
 
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)
           
 
Method Summary
 AttributeEntityList getAttributes()
           
 java.lang.String getDisplayName()
           
 java.lang.String getEmail()
           
 java.lang.String getFirstName()
           
 java.lang.String getLastName()
           
 com.atlassian.plugins.rest.common.Link getLink()
           
 java.lang.String getName()
           
 PasswordEntity getPassword()
           
 java.lang.Boolean isActive()
           
 boolean isExpanded()
          Does this object represent an expanded user, or does it only contain a username.
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.
 void setActive(boolean active)
           
 void setAttributes(AttributeEntityList attributes)
           
 void setEmail(java.lang.String email)
           
 void setLink(com.atlassian.plugins.rest.common.Link link)
           
 void setName(java.lang.String name)
           
 void setPassword(PasswordEntity password)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTRIBUTES_FIELD_NAME

public static final java.lang.String ATTRIBUTES_FIELD_NAME
Name of the attributes field.

See Also:
Constant Field Values
Constructor Detail

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)
Method Detail

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.