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.StringgetDescriptiveName()Returns full name of the user if it is not empty, otherwise returns username.StringgetEmail()Returns e-mail of this userStringgetExtendedName()longgetId()Returns user idDategetLastLoginTimestamp()Returns this user last login timestampStringgetName()Returns full name of this userStringgetRealm()Returns realm of the user.StringgetUsername()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
-
-