jetbrains.buildServer.users
Interface User

All Known Subinterfaces:
SUser
All Known Implementing Classes:
SimpleUserData, UserData

public interface User

Represents a user


Method Summary
 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.
 

Method Detail

getId

long getId()
Returns user id

Returns:
user id

getRealm

java.lang.String getRealm()
Returns realm of the user.

Returns:
realm of the user

getUsername

java.lang.String getUsername()
Returns username of this user

Returns:
username

getName

java.lang.String getName()
Returns full name of this user

Returns:
user full name

getEmail

java.lang.String getEmail()
Returns e-mail of this user

Returns:
email address

getDescriptiveName

java.lang.String getDescriptiveName()
Returns full name of the user if it is not empty, otherwise returns username.

Returns:
full name or username if full name is empty

getExtendedName

java.lang.String getExtendedName()
Returns:
user full name and username in the form: <full name> (<username>)
Since:
7.0

getLastLoginTimestamp

java.util.Date getLastLoginTimestamp()
Returns this user last login timestamp

Returns:
last login timestamp

getPropertyValue

java.lang.String getPropertyValue(PropertyKey propertyKey)
Returns value of the property with specified key

Parameters:
propertyKey - value of the property with specified key
Returns:
value of the property with specified key

getBooleanProperty

boolean getBooleanProperty(PropertyKey propertyKey)
Returns value of the boolean property

Parameters:
propertyKey - property key
Returns:
value

getProperties

java.util.Map<PropertyKey,java.lang.String> getProperties()
Returns map of the user properties

Returns:
map of the user properties

getVisibleProjects

java.util.List<java.lang.String> getVisibleProjects()
Computes list of visible projects sorted according to the order specified by user.

Returns:
list of visible projects ids

getAllProjects

java.util.List<java.lang.String> getAllProjects()
Returns all projects sorted according to the order specified by user.

Returns:
list of all of the projects ids