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

java.lang.Object
  extended by com.atlassian.crowd.integration.rest.entity.UserEntity
All Implemented Interfaces:
Attributes, User, UserWithAttributes, DirectoryEntity, java.lang.Comparable<User>, java.security.Principal

public class UserEntity
extends java.lang.Object
implements UserWithAttributes

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, boolean active)
           
 
Method Summary
 int compareTo(User user)
           
 boolean equals(java.lang.Object o)
           
 MultiValuedAttributeEntityList getAttributes()
           
 long getDirectoryId()
           
 java.lang.String getDisplayName()
           
 java.lang.String getEmailAddress()
           
 java.lang.String getFirstName()
           
 java.util.Set<java.lang.String> getKeys()
           
 java.lang.String getLastName()
           
 java.lang.String getName()
           
 PasswordEntity getPassword()
           
 java.lang.String getValue(java.lang.String key)
           
 java.util.Set<java.lang.String> getValues(java.lang.String key)
           
 int hashCode()
           
 boolean isActive()
           
 boolean isEmpty()
           
static UserEntity newMinimalInstance(java.lang.String username)
          Creates a new minimal user instance.
 void setAttributes(MultiValuedAttributeEntityList attributes)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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,
                  boolean active)
Method Detail

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface User

getFirstName

public java.lang.String getFirstName()

getLastName

public java.lang.String getLastName()

getEmailAddress

public java.lang.String getEmailAddress()
Specified by:
getEmailAddress in interface User

getPassword

public PasswordEntity getPassword()

isActive

public boolean isActive()
Specified by:
isActive in interface User

getName

public java.lang.String getName()
Specified by:
getName in interface DirectoryEntity
Specified by:
getName in interface java.security.Principal

setAttributes

public void setAttributes(MultiValuedAttributeEntityList attributes)

getAttributes

public MultiValuedAttributeEntityList getAttributes()

getValues

public java.util.Set<java.lang.String> getValues(java.lang.String key)
Specified by:
getValues in interface Attributes

getValue

public java.lang.String getValue(java.lang.String key)
Specified by:
getValue in interface Attributes

getKeys

public java.util.Set<java.lang.String> getKeys()
Specified by:
getKeys in interface Attributes

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Attributes

getDirectoryId

public long getDirectoryId()
Specified by:
getDirectoryId in interface User
Specified by:
getDirectoryId in interface DirectoryEntity

compareTo

public int compareTo(User user)
Specified by:
compareTo in interface User
Specified by:
compareTo in interface java.lang.Comparable<User>

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface User
Specified by:
equals in interface DirectoryEntity
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface User
Specified by:
hashCode in interface DirectoryEntity
Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object

newMinimalInstance

public static UserEntity newMinimalInstance(java.lang.String username)
Creates a new minimal user instance.

Parameters:
username - username for the user
Returns:
minimal user instance


Copyright © 2012 Atlassian. All Rights Reserved.