Package jetbrains.buildServer.serverSide
Class ServerResponsibilityImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ServerResponsibilityImpl
-
- All Implemented Interfaces:
ServerPermissionsRestrictor,ServerResponsibility,ServerResponsibilityEx
public class ServerResponsibilityImpl extends Object implements ServerResponsibilityEx
-
-
Constructor Summary
Constructors Constructor Description ServerResponsibilityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanCheckForChanges()booleancanCleanup()booleancanManageAgents()booleancanManageBuilds()booleancanManageClouds()booleancanManageInvestigations()booleancanManageProjectsConfigs()booleancanManageProjectsConfiguration()booleancanManageServerConfig()booleancanManageServerConfiguration()booleancanManageUsers()booleancanModifyDataInDatabase()Returns true if the server can modify data in the database.booleancanProcessDataFromRunningBuilds()booleancanProcessUserDataModificationRequests()If this responsibility is enabled then server user interface allows users to perform various data modification requests, like builds triggering, queue reordering, editing of the settings, etc.booleancanQueueBuilds()booleancanReportUsageStatistics()booleancanSendNotifications()booleancanWriteToAudit()booleancanWriteToConfigDirectory()PermissionsgetAllowedPermissions()Get set of the permissions allowed on the server or null if all the permissions are allowed.booleanisResponsibleForBuild(SBuild build)voidsetHeartbeat(Heartbeat heartbeat)
-
-
-
Method Detail
-
setHeartbeat
public void setHeartbeat(@NotNull Heartbeat heartbeat)
-
getAllowedPermissions
public Permissions getAllowedPermissions()
Description copied from interface:ServerPermissionsRestrictorGet set of the permissions allowed on the server or null if all the permissions are allowed. Returned permissions are deducted from every user permission.- Specified by:
getAllowedPermissionsin interfaceServerPermissionsRestrictor
-
canCleanup
public boolean canCleanup()
- Specified by:
canCleanupin interfaceServerResponsibility- Returns:
- true if the server should perform cleanup
-
canManageAgents
public boolean canManageAgents()
- Specified by:
canManageAgentsin interfaceServerResponsibility- Returns:
- true if the server should manage agents (register, unregister, etc...)
-
canManageServerConfiguration
public boolean canManageServerConfiguration()
- Specified by:
canManageServerConfigurationin interfaceServerResponsibility- Returns:
- true if the server can manage global server settings (licenses, authentication settings, roles, etc)
-
canManageProjectsConfiguration
public boolean canManageProjectsConfiguration()
- Specified by:
canManageProjectsConfigurationin interfaceServerResponsibility- Returns:
- true if the server can manage/change projects configuration
-
canManageBuilds
public boolean canManageBuilds()
- Specified by:
canManageBuildsin interfaceServerResponsibility- Returns:
- true if the server should manage builds (start, stop, finish, delete)
-
canQueueBuilds
public boolean canQueueBuilds()
- Specified by:
canQueueBuildsin interfaceServerResponsibility- Returns:
- true if the server can create build promotions and add they to queue
-
isResponsibleForBuild
public boolean isResponsibleForBuild(@NotNull SBuild build)- Specified by:
isResponsibleForBuildin interfaceServerResponsibility- Returns:
- true if the server should perform some background activities related to the specified build.
-
canProcessDataFromRunningBuilds
public boolean canProcessDataFromRunningBuilds()
- Specified by:
canProcessDataFromRunningBuildsin interfaceServerResponsibilityEx- Returns:
- true if the server should process running builds data: data written to build log, tests, statistics, artifacts upload requests
-
canModifyDataInDatabase
public boolean canModifyDataInDatabase()
Description copied from interface:ServerResponsibilityExReturns true if the server can modify data in the database.- Specified by:
canModifyDataInDatabasein interfaceServerResponsibilityEx- Returns:
-
canWriteToConfigDirectory
public boolean canWriteToConfigDirectory()
- Specified by:
canWriteToConfigDirectoryin interfaceServerResponsibility- Returns:
- true if this node can modify files under the <Data directory>/config directory
-
canCheckForChanges
public boolean canCheckForChanges()
- Specified by:
canCheckForChangesin interfaceServerResponsibility- Returns:
- true if the server should checking for changes
-
canManageUsers
public boolean canManageUsers()
- Specified by:
canManageUsersin interfaceServerResponsibility- Returns:
- true if the server should manage users (create, delete, change properties)
-
canManageInvestigations
public boolean canManageInvestigations()
- Specified by:
canManageInvestigationsin interfaceServerResponsibility
-
canManageClouds
public boolean canManageClouds()
- Specified by:
canManageCloudsin interfaceServerResponsibility- Returns:
- true if server should manage clouds (i.e. regularly update list of instances from hypervisor, start/stop new instances, etc.)
-
canReportUsageStatistics
public boolean canReportUsageStatistics()
- Specified by:
canReportUsageStatisticsin interfaceServerResponsibility
-
canSendNotifications
public boolean canSendNotifications()
- Specified by:
canSendNotificationsin interfaceServerResponsibility
-
canWriteToAudit
public boolean canWriteToAudit()
- Specified by:
canWriteToAuditin interfaceServerResponsibility
-
canProcessUserDataModificationRequests
public boolean canProcessUserDataModificationRequests()
Description copied from interface:ServerResponsibilityIf this responsibility is enabled then server user interface allows users to perform various data modification requests, like builds triggering, queue reordering, editing of the settings, etc.- Specified by:
canProcessUserDataModificationRequestsin interfaceServerResponsibility- Returns:
- see above
-
canManageServerConfig
public boolean canManageServerConfig()
- Specified by:
canManageServerConfigin interfaceServerResponsibility- Returns:
- same as
ServerResponsibility.canWriteToConfigDirectory()
-
canManageProjectsConfigs
public boolean canManageProjectsConfigs()
- Specified by:
canManageProjectsConfigsin interfaceServerResponsibility- Returns:
- same as
ServerResponsibility.canWriteToConfigDirectory()
-
-