Package com.atlassian.bamboo
Interface FeatureManager
- All Known Implementing Classes:
DefaultFeatureManager
@Immutable
public interface FeatureManager
An interface that controls what features are turned on and off.
-
Method Summary
Modifier and TypeMethodDescriptionMaximum size of artifacts for single build result in bytesdefault booleanIs agent build resiliency onbooleanTrue if RSS should always create specs result, even if plan is not changed by a commit.booleanWhether we let the user configure artifact handlers.default booleanDeprecated.since 10.0 always truebooleanWhether server-side artifact storage space is limited according toAdministrationConfiguration.getStorageLimit().booleanbooleandefault booleanSince Bamboo 9.5, the DC license is the only valid license type.booleanbooleanWhether elastic agents are enableddefault booleanDeprecated.since 7.1, always truebooleanbooleanbooleanTrue if the hot swap import is available on the Bamboo instance.booleanWhether local agents are enabledbooleanWhether to use the new pdl or notbooleanReturns true if Bamboo is measuring and gathering performance data.default booleanDeprecated.since 10.0 always truebooleanWhether the current Bamboo setup prevents people from using VPCs unless their instances have a public IP.booleanbooleanWhether remote agents can be managed by adminbooleanWhether remote agents are enabledbooleanReturns true if EDIT permission on plan is not required for removing plans and labelsbooleanWhether new repository UI is enabled.booleanbooleanDeprecated.since 8.0 returns false alwaysbooleanWhether to use rotp admin shortcuts or not.booleanWhether to show rotp features or not.booleanWhether to show rotp project shortcuts feature or not.booleanbooleanTrue if seamless restarts are currently enabled.booleanTrue if seamless restarts' persistence is turned on.booleanWhether SOX compliance is configurable (if not then it is disabled)booleanWhether updating Stash with build status after builds are completed is enabled.booleanWhether updating Stash (Bitbucket Server) with deployments from deployment projects is enabledbooleanWhether updating Stash with extended build statuses is disableddefault booleanDeprecated.since 10.0 always onbooleanWhether web sudo checks are enabled when accessing admin pages
-
Method Details
-
isLocalAgentsSupported
boolean isLocalAgentsSupported()Whether local agents are enabled- Returns:
- true if local agents are supported, false otherwise
-
isRemoteAgentsSupported
boolean isRemoteAgentsSupported()Whether remote agents are enabled- Returns:
- true if remote agents are supported, false otherwise
-
isRemoteAgentsManagementEnabled
boolean isRemoteAgentsManagementEnabled()Whether remote agents can be managed by admin -
isElasticAgentsSupported
boolean isElasticAgentsSupported()Whether elastic agents are enabled- Returns:
- true if elastic agents are supported, false otherwise
-
isRequiredEc2Configuration
Deprecated.since 8.0 returns false alwaysWhether EC2 configuration is required for plan creation -
getBuildArtifactSizeLimit
Maximum size of artifacts for single build result in bytes- Returns:
- maximum artifact size in bytes when limit set, Optional.empty()) if not
-
isRotpEnabled
boolean isRotpEnabled()Whether to show rotp features or not. -
isRotpProjectShortcutsEnabled
boolean isRotpProjectShortcutsEnabled()Whether to show rotp project shortcuts feature or not. -
isRotpAdminShortcutsEnabled
boolean isRotpAdminShortcutsEnabled()Whether to use rotp admin shortcuts or not. -
isPdlEnabled
boolean isPdlEnabled()Whether to use the new pdl or not -
isRemovingLabelsAndCommentsAllowedForNonPlanAdmin
boolean isRemovingLabelsAndCommentsAllowedForNonPlanAdmin()Returns true if EDIT permission on plan is not required for removing plans and labels- Returns:
-
getUnconfigurableFeatureDefaults
UnconfigurableFeatureDefaults getUnconfigurableFeatureDefaults() -
isFusionDeploymentsSupportEnabled
boolean isFusionDeploymentsSupportEnabled()- Returns:
- Whether Bamboo should provide environment related data to Fusion app (BDEV-4007)
-
isUpdatingStashWithBuildStatusEnabled
boolean isUpdatingStashWithBuildStatusEnabled()Whether updating Stash with build status after builds are completed is enabled.- Returns:
trueif updating stash (Bitbucket Server) with build statuses is enabled
-
isUpdatingStashWithDeploymentsEnabled
boolean isUpdatingStashWithDeploymentsEnabled()Whether updating Stash (Bitbucket Server) with deployments from deployment projects is enabled- Returns:
trueif deployments should be posted to Stash (Bitbucket Server)
-
isUpdatingStashWithExtendedBuildStatusEnabled
boolean isUpdatingStashWithExtendedBuildStatusEnabled()Whether updating Stash with extended build statuses is disabled- Returns:
falseif build statuses should be posted to the legacy endpoint. Otherwisetrue
-
isWebSudoEnabled
boolean isWebSudoEnabled()Whether web sudo checks are enabled when accessing admin pages- Returns:
trueif web sudo checks should be applied. Otherwisefalse
-
isPublicIpRequiredForVpc
boolean isPublicIpRequiredForVpc()Whether the current Bamboo setup prevents people from using VPCs unless their instances have a public IP. -
isRemoteAgentShellEnabled
boolean isRemoteAgentShellEnabled() -
isGravatarConfigurable
boolean isGravatarConfigurable() -
isArtifactStorageSpaceLimited
boolean isArtifactStorageSpaceLimited()Whether server-side artifact storage space is limited according toAdministrationConfiguration.getStorageLimit(). -
isSoxComplianceModeConfigurable
boolean isSoxComplianceModeConfigurable()Whether SOX compliance is configurable (if not then it is disabled) -
isRepositoryDashboardEnabled
boolean isRepositoryDashboardEnabled()Whether new repository UI is enabled. -
isArtifactHandlerUiEnabled
boolean isArtifactHandlerUiEnabled()Whether we let the user configure artifact handlers. -
isExportToJavaSpecsEnabled
Deprecated.since 7.1, always true- Returns:
- true when export to Bamboo Java Specs feature is enabled.
-
isRepositoryStoredSpecsEnabled
boolean isRepositoryStoredSpecsEnabled()- Returns:
- true when Repository Stored Specs (RSS) feature is enabled (do not mistake it with enabling RSS processing accessible from Administration / Security Settings)
-
isDockerPipelinesEnabled
boolean isDockerPipelinesEnabled()- Returns:
- true if docker pipelines feature is enabled.
-
isCrowdRecoveryModeEnabled
boolean isCrowdRecoveryModeEnabled()- Returns:
- true if Bamboo started in password recovery mode, -Datlassian.recovery.password=password
-
isRssPollingEnabled
boolean isRssPollingEnabled()- Returns:
- true if polling for rss changes is enabled
-
isCreateDeploymentGrantedByProjects
boolean isCreateDeploymentGrantedByProjects()- Returns:
- true if create permission on any project grants create deployment
-
isPerformanceDataGatheringEnabled
boolean isPerformanceDataGatheringEnabled()Returns true if Bamboo is measuring and gathering performance data. -
isArtifactsAsLogsEnabled
Deprecated.since 10.0 always trueTrue if live logs can be switched off (logs as artifacts enabled) or instance is Data Center. -
isDataCenter
default boolean isDataCenter()Since Bamboo 9.5, the DC license is the only valid license type. Other licence types are rejected during startup. -
isProjectLevelBuildResourcesEnabled
Deprecated.since 10.0 always trueTrue if project level build resources are enabled -
isAgentBuildResiliencyOn
default boolean isAgentBuildResiliencyOn()Is agent build resiliency on -
isSeamlessRestartsPersistenceEnabled
boolean isSeamlessRestartsPersistenceEnabled()True if seamless restarts' persistence is turned on. -
isSeamlessRestartEnabled
boolean isSeamlessRestartEnabled()True if seamless restarts are currently enabled. -
isViewConfigurationPermissionEnabled
Deprecated.since 10.0 always onTrue if view configuration is enabled.- Since:
- 8.0
-
isAlwaysCreatePlanSpecsResult
boolean isAlwaysCreatePlanSpecsResult()True if RSS should always create specs result, even if plan is not changed by a commit. -
isHotSwapImportEnabled
boolean isHotSwapImportEnabled()True if the hot swap import is available on the Bamboo instance.- Since:
- 9.6
-