jetbrains.buildServer.users
Class SimpleUserData

java.lang.Object
  extended by jetbrains.buildServer.users.SimpleUserData
All Implemented Interfaces:
User
Direct Known Subclasses:
UserData

public class SimpleUserData
extends java.lang.Object
implements User

This class contains main information to be sent via XmlRpc to remote client about TeamCity user


Constructor Summary
SimpleUserData(long id, java.lang.String username, java.lang.String name)
           
 
Method Summary
static SimpleUserData createSimpleUserDataOn(User user)
           
 boolean equals(java.lang.Object that)
           
 java.util.List<java.lang.String> getAllProjects()
          Returns all projects sorted according to the order specified by user.
 boolean getBooleanProperty(PropertyKey propertyKey)
          Returns value of the boolean property
 java.lang.String getDescriptiveName()
          Returns full name of the user if it is not empty, otherwise returns username.
 java.lang.String getEmail()
          Returns e-mail of this user
 java.lang.String getExtendedName()
           
 long getId()
          Returns user id
 java.util.Date getLastLoginTimestamp()
          Returns this user last login timestamp
 java.lang.String getName()
          Returns full name of this user
 java.util.Map<PropertyKey,java.lang.String> getProperties()
          Returns map of the user properties
 java.lang.String getPropertyValue(PropertyKey propertyKey)
          Returns value of the property with specified key
 java.lang.String getRealm()
          Returns realm of the user.
 java.lang.String getUsername()
          Returns username of this user
 java.util.List<java.lang.String> getVisibleProjects()
          Computes list of visible projects sorted according to the order specified by user.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleUserData

public SimpleUserData(long id,
                      java.lang.String username,
                      java.lang.String name)
Method Detail

getId

public long getId()
Description copied from interface: User
Returns user id

Specified by:
getId in interface User
Returns:
user id

getRealm

public java.lang.String getRealm()
Description copied from interface: User
Returns realm of the user.

Specified by:
getRealm in interface User
Returns:
realm of the user

getUsername

public java.lang.String getUsername()
Description copied from interface: User
Returns username of this user

Specified by:
getUsername in interface User
Returns:
username

getName

public java.lang.String getName()
Description copied from interface: User
Returns full name of this user

Specified by:
getName in interface User
Returns:
user full name

getEmail

public java.lang.String getEmail()
Description copied from interface: User
Returns e-mail of this user

Specified by:
getEmail in interface User
Returns:
email address

getDescriptiveName

public java.lang.String getDescriptiveName()
Description copied from interface: User
Returns full name of the user if it is not empty, otherwise returns username.

Specified by:
getDescriptiveName in interface User
Returns:
full name or username if full name is empty

getExtendedName

public java.lang.String getExtendedName()
Specified by:
getExtendedName in interface User
Returns:
user full name and username in the form: <full name> (<username>)

getLastLoginTimestamp

public java.util.Date getLastLoginTimestamp()
Description copied from interface: User
Returns this user last login timestamp

Specified by:
getLastLoginTimestamp in interface User
Returns:
last login timestamp

getPropertyValue

public java.lang.String getPropertyValue(PropertyKey propertyKey)
Description copied from interface: User
Returns value of the property with specified key

Specified by:
getPropertyValue in interface User
Parameters:
propertyKey - value of the property with specified key
Returns:
value of the property with specified key

getBooleanProperty

public boolean getBooleanProperty(PropertyKey propertyKey)
Description copied from interface: User
Returns value of the boolean property

Specified by:
getBooleanProperty in interface User
Parameters:
propertyKey - property key
Returns:
value

getProperties

public java.util.Map<PropertyKey,java.lang.String> getProperties()
Description copied from interface: User
Returns map of the user properties

Specified by:
getProperties in interface User
Returns:
map of the user properties

getVisibleProjects

public java.util.List<java.lang.String> getVisibleProjects()
Description copied from interface: User
Computes list of visible projects sorted according to the order specified by user.

Specified by:
getVisibleProjects in interface User
Returns:
list of visible projects ids

getAllProjects

public java.util.List<java.lang.String> getAllProjects()
Description copied from interface: User
Returns all projects sorted according to the order specified by user.

Specified by:
getAllProjects in interface User
Returns:
list of all of the projects ids

createSimpleUserDataOn

@NotNull
public static SimpleUserData createSimpleUserDataOn(@NotNull
                                                            User user)

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object