Class UserEntity

java.lang.Object
com.atlassian.crowd.plugin.rest.entity.UserEntity
All Implemented Interfaces:
NamedEntity

@Expander(UserEntityExpander.class) public class UserEntity extends Object implements NamedEntity
Represents a User entity (server side).
Since:
v2.1
  • Field Details

    • ATTRIBUTES_FIELD_NAME

      public static final String ATTRIBUTES_FIELD_NAME
      Name of the attributes field.
      See Also:
  • Constructor Details

  • Method Details

    • 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()
    • setEncryptedPassword

      public void setEncryptedPassword(PasswordEntity encryptedPassword)
    • getEncryptedPassword

      public PasswordEntity getEncryptedPassword()
    • 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
    • setCreatedDate

      public void setCreatedDate(Date createdDate)
    • getCreatedDate

      public Date getCreatedDate()
    • setUpdatedDate

      public void setUpdatedDate(Date updatedDate)
    • getUpdatedDate

      public Date getUpdatedDate()
    • setAttributes

      public void setAttributes(MultiValuedAttributeEntityList attributes)
    • getAttributes

      public MultiValuedAttributeEntityList getAttributes()
    • getKey

      public String getKey()
    • getDirectoryName

      public String getDirectoryName()
    • setDirectoryName

      public void setDirectoryName(String directoryName)
    • setDirectoryId

      public void setDirectoryId(Long directoryId)
    • getDirectoryId

      public Long getDirectoryId()
    • setFirstName

      public void setFirstName(String firstName)
    • setLastName

      public void setLastName(String lastName)
    • newMinimalUserEntity

      public static UserEntity newMinimalUserEntity(String name, String applicationName, com.atlassian.plugins.rest.api.model.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=<username>".
      Returns:
      UserEntity
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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