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 boolean
canCheckForChanges()
boolean
canCleanup()
boolean
canManageAgents()
boolean
canManageBuilds()
boolean
canManageClouds()
boolean
canManageInvestigations()
boolean
canManageProjectsConfigs()
boolean
canManageProjectsConfiguration()
boolean
canManageServerConfig()
boolean
canManageServerConfiguration()
boolean
canManageUsers()
boolean
canModifyDataInDatabase()
Returns true if the server can modify data in the database.boolean
canProcessDataFromRunningBuilds()
boolean
canProcessUserDataModificationRequests()
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.boolean
canQueueBuilds()
boolean
canReportUsageStatistics()
boolean
canSendNotifications()
boolean
canWriteToAudit()
boolean
canWriteToConfigDirectory()
Permissions
getAllowedPermissions()
Get set of the permissions allowed on the server or null if all the permissions are allowed.boolean
isResponsibleForBuild(SBuild build)
void
setHeartbeat(Heartbeat heartbeat)
-
-
-
Method Detail
-
setHeartbeat
public void setHeartbeat(@NotNull Heartbeat heartbeat)
-
getAllowedPermissions
public Permissions getAllowedPermissions()
Description copied from interface:ServerPermissionsRestrictor
Get 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:
getAllowedPermissions
in interfaceServerPermissionsRestrictor
-
canCleanup
public boolean canCleanup()
- Specified by:
canCleanup
in interfaceServerResponsibility
- Returns:
- true if the server should perform cleanup
-
canManageAgents
public boolean canManageAgents()
- Specified by:
canManageAgents
in interfaceServerResponsibility
- Returns:
- true if the server should manage agents (register, unregister, etc...)
-
canManageServerConfiguration
public boolean canManageServerConfiguration()
- Specified by:
canManageServerConfiguration
in interfaceServerResponsibility
- Returns:
- true if the server can manage global server settings (licenses, authentication settings, roles, etc)
-
canManageProjectsConfiguration
public boolean canManageProjectsConfiguration()
- Specified by:
canManageProjectsConfiguration
in interfaceServerResponsibility
- Returns:
- true if the server can manage/change projects configuration
-
canManageBuilds
public boolean canManageBuilds()
- Specified by:
canManageBuilds
in interfaceServerResponsibility
- Returns:
- true if the server should manage builds (start, stop, finish, delete)
-
canQueueBuilds
public boolean canQueueBuilds()
- Specified by:
canQueueBuilds
in interfaceServerResponsibility
- Returns:
- true if the server can create build promotions and add they to queue
-
isResponsibleForBuild
public boolean isResponsibleForBuild(@NotNull SBuild build)
- Specified by:
isResponsibleForBuild
in interfaceServerResponsibility
- Returns:
- true if the server should perform some background activities related to the specified build.
-
canProcessDataFromRunningBuilds
public boolean canProcessDataFromRunningBuilds()
- Specified by:
canProcessDataFromRunningBuilds
in 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:ServerResponsibilityEx
Returns true if the server can modify data in the database.- Specified by:
canModifyDataInDatabase
in interfaceServerResponsibilityEx
- Returns:
-
canWriteToConfigDirectory
public boolean canWriteToConfigDirectory()
- Specified by:
canWriteToConfigDirectory
in interfaceServerResponsibility
- Returns:
- true if this node can modify files under the <Data directory>/config directory
-
canCheckForChanges
public boolean canCheckForChanges()
- Specified by:
canCheckForChanges
in interfaceServerResponsibility
- Returns:
- true if the server should checking for changes
-
canManageUsers
public boolean canManageUsers()
- Specified by:
canManageUsers
in interfaceServerResponsibility
- Returns:
- true if the server should manage users (create, delete, change properties)
-
canManageInvestigations
public boolean canManageInvestigations()
- Specified by:
canManageInvestigations
in interfaceServerResponsibility
-
canManageClouds
public boolean canManageClouds()
- Specified by:
canManageClouds
in 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:
canReportUsageStatistics
in interfaceServerResponsibility
-
canSendNotifications
public boolean canSendNotifications()
- Specified by:
canSendNotifications
in interfaceServerResponsibility
-
canWriteToAudit
public boolean canWriteToAudit()
- Specified by:
canWriteToAudit
in interfaceServerResponsibility
-
canProcessUserDataModificationRequests
public boolean canProcessUserDataModificationRequests()
Description copied from interface:ServerResponsibility
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.- Specified by:
canProcessUserDataModificationRequests
in interfaceServerResponsibility
- Returns:
- see above
-
canManageServerConfig
public boolean canManageServerConfig()
- Specified by:
canManageServerConfig
in interfaceServerResponsibility
- Returns:
- same as
ServerResponsibility.canWriteToConfigDirectory()
-
canManageProjectsConfigs
public boolean canManageProjectsConfigs()
- Specified by:
canManageProjectsConfigs
in interfaceServerResponsibility
- Returns:
- same as
ServerResponsibility.canWriteToConfigDirectory()
-
-