Package jetbrains.buildServer.users
Interface User
-
- All Superinterfaces:
AuthorityHolder
,Loggable
,PropertyHolder
- All Known Implementing Classes:
AssociatedUser
,BaseUser
,InMemoryUser
,RestrictedUserImpl
,SecuredUser
,SimpleUserData
,TestUser
,UserData
,UserImpl
public interface User extends AuthorityHolder, PropertyHolder, Loggable
Represents a user
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>
getAllProjects()
Returns all projects sorted according to the order specified by user.String
getDescriptiveName()
Returns full name of the user if it is not empty, otherwise returns username.String
getEmail()
Returns e-mail of this userString
getExtendedName()
long
getId()
Returns user idDate
getLastLoginTimestamp()
Returns this user last login timestampString
getName()
Returns full name of this userString
getRealm()
Returns realm of the user.String
getUsername()
Returns username of this userList<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
String getRealm()
Returns realm of the user.- Returns:
- realm of the user
-
getUsername
String getUsername()
Returns username of this user- Returns:
- username
-
getName
String getName()
Returns full name of this user- Returns:
- user full name
-
getEmail
String getEmail()
Returns e-mail of this user- Returns:
- email address
-
getDescriptiveName
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
String getExtendedName()
- Returns:
- user full name and username in the form: <full name> (<username>)
- Since:
- 7.0
-
getLastLoginTimestamp
Date getLastLoginTimestamp()
Returns this user last login timestamp- Returns:
- last login timestamp
-
getVisibleProjects
List<String> getVisibleProjects()
Computes list of visible projects sorted according to the order specified by user.- Returns:
- list of visible projects ids
-
-