Package jetbrains.buildServer.users
Interface User
-
- All Superinterfaces:
AuthorityHolder
,jetbrains.buildServer.log.Loggable
,PropertyHolder
- All Known Subinterfaces:
SUser
- All Known Implementing Classes:
SimpleUserData
,UserData
public interface User extends AuthorityHolder, PropertyHolder, jetbrains.buildServer.log.Loggable
Represents a user
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>
getAllProjects()
Returns all projects sorted according to the order specified by user.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 userjava.lang.String
getExtendedName()
long
getId()
Returns user idjava.util.Date
getLastLoginTimestamp()
Returns this user last login timestampjava.lang.String
getName()
Returns full name of this userjava.lang.String
getRealm()
Returns realm of the user.java.lang.String
getUsername()
Returns username of this userjava.util.List<java.lang.String>
getVisibleProjects()
Computes list of visible projects sorted according to the order specified by user.-
Methods inherited from interface jetbrains.buildServer.serverSide.auth.AuthorityHolder
getAllPermissions, getAssociatedUser, getGlobalPermissions, getPermissionsGrantedForAllProjects, getPermissionsGrantedForAnyOfProjects, getPermissionsGrantedForProject, getProjectsPermissions, hasAllPermissionsOf, isPermissionGrantedForAllProjects, isPermissionGrantedForAnyOfProjects, isPermissionGrantedForAnyProject, isPermissionGrantedForProject, isPermissionGrantedGlobally
-
Methods inherited from interface jetbrains.buildServer.users.PropertyHolder
getBooleanProperty, getProperties, getPropertyValue
-
-
-
-
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
-
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
-
-