Package com.atlassian.bamboo
Class DefaultFeatureManager
- java.lang.Object
-
- com.atlassian.bamboo.DefaultFeatureManager
-
- All Implemented Interfaces:
FeatureManager
@Immutable public class DefaultFeatureManager extends Object implements FeatureManager
-
-
Constructor Summary
Constructors Constructor Description DefaultFeatureManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Long>getBuildArtifactSizeLimit()Maximum size of artifacts for single build result in bytesUnconfigurableFeatureDefaultsgetUnconfigurableFeatureDefaults()booleanisAlwaysCreatePlanSpecsResult()True if RSS should always create specs result, even if plan is not changed by a commit.booleanisArtifactHandlerUiEnabled()Whether we let the user configure artifact handlers.booleanisArtifactsAsLogsEnabled()True if live logs can be switched off (logs as artifacts enabled) or instance is Data Center.booleanisArtifactStorageSpaceLimited()Whether server-side artifact storage space is limited according toAdministrationConfiguration.getStorageLimit().booleanisCreateDeploymentGrantedByProjects()booleanisCrowdRecoveryModeEnabled()booleanisDataCenter()booleanisDockerPipelinesEnabled()booleanisElasticAgentsSupported()Whether elastic agents are enabledbooleanisFusionDeploymentsSupportEnabled()booleanisGravatarConfigurable()booleanisHotSwapImportEnabled()True if the hot swap import is available on the Bamboo instance.booleanisLocalAgentsSupported()Whether local agents are enabledbooleanisPdlEnabled()Whether to use the new pdl or notbooleanisPerformanceDataGatheringEnabled()Returns true if Bamboo is measuring and gathering performance data.booleanisProjectLevelBuildResourcesEnabled()True if project level build resources are enabledbooleanisPublicIpRequiredForVpc()Whether the current Bamboo setup prevents people from using VPCs unless their instances have a public IP.booleanisRemoteAgentShellEnabled()booleanisRemoteAgentsManagementEnabled()Whether remote agents can be managed by adminbooleanisRemoteAgentsSupported()Whether remote agents are enabledbooleanisRemovingLabelsAndCommentsAllowedForNonPlanAdmin()Returns true if EDIT permission on plan is not required for removing plans and labelsbooleanisRepositoryDashboardEnabled()Whether new repository UI is enabled.booleanisRepositoryStoredSpecsEnabled()booleanisRequiredEc2Configuration()Whether EC2 configuration is required for plan creationbooleanisRotpAdminShortcutsEnabled()Whether to use rotp admin shortcuts or not.booleanisRotpEnabled()Whether to show rotp features or not.booleanisRotpProjectShortcutsEnabled()Whether to show rotp project shortcuts feature or not.booleanisRssPollingEnabled()booleanisSeamlessRestartEnabled()True if seamless restarts are currently enabled.booleanisSeamlessRestartsPersistenceEnabled()True if seamless restarts' persistence is turned on.booleanisSoxComplianceModeConfigurable()Whether SOX compliance is configurable (if not then it is disabled)booleanisUpdatingStashWithBuildStatusEnabled()Whether updating Stash with build status after builds are completed is enabled.booleanisUpdatingStashWithDeploymentsEnabled()Whether updating Stash (Bitbucket Server) with deployments from deployment projects is enabledbooleanisUpdatingStashWithExtendedBuildStatusEnabled()Whether updating Stash with extended build statuses is disabledbooleanisViewConfigurationPermissionEnabled()True if view configuration is enabled.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.FeatureManager
isAgentBuildResiliencyOn, isExportToJavaSpecsEnabled
-
-
-
-
Method Detail
-
isLocalAgentsSupported
public boolean isLocalAgentsSupported()
Description copied from interface:FeatureManagerWhether local agents are enabled- Specified by:
isLocalAgentsSupportedin interfaceFeatureManager- Returns:
- true if local agents are supported, false otherwise
-
isRemoteAgentsSupported
public boolean isRemoteAgentsSupported()
Description copied from interface:FeatureManagerWhether remote agents are enabled- Specified by:
isRemoteAgentsSupportedin interfaceFeatureManager- Returns:
- true if remote agents are supported, false otherwise
-
isRemoteAgentsManagementEnabled
public boolean isRemoteAgentsManagementEnabled()
Description copied from interface:FeatureManagerWhether remote agents can be managed by admin- Specified by:
isRemoteAgentsManagementEnabledin interfaceFeatureManager
-
isElasticAgentsSupported
public boolean isElasticAgentsSupported()
Description copied from interface:FeatureManagerWhether elastic agents are enabled- Specified by:
isElasticAgentsSupportedin interfaceFeatureManager- Returns:
- true if elastic agents are supported, false otherwise
-
isRequiredEc2Configuration
public boolean isRequiredEc2Configuration()
Description copied from interface:FeatureManagerWhether EC2 configuration is required for plan creation- Specified by:
isRequiredEc2Configurationin interfaceFeatureManager
-
getBuildArtifactSizeLimit
public Optional<Long> getBuildArtifactSizeLimit()
Description copied from interface:FeatureManagerMaximum size of artifacts for single build result in bytes- Specified by:
getBuildArtifactSizeLimitin interfaceFeatureManager- Returns:
- maximum artifact size in bytes when limit set, Optional.empty()) if not
-
isRotpEnabled
public boolean isRotpEnabled()
Description copied from interface:FeatureManagerWhether to show rotp features or not.- Specified by:
isRotpEnabledin interfaceFeatureManager
-
isRotpProjectShortcutsEnabled
public boolean isRotpProjectShortcutsEnabled()
Description copied from interface:FeatureManagerWhether to show rotp project shortcuts feature or not.- Specified by:
isRotpProjectShortcutsEnabledin interfaceFeatureManager
-
isRotpAdminShortcutsEnabled
public boolean isRotpAdminShortcutsEnabled()
Description copied from interface:FeatureManagerWhether to use rotp admin shortcuts or not.- Specified by:
isRotpAdminShortcutsEnabledin interfaceFeatureManager
-
isPdlEnabled
public boolean isPdlEnabled()
Description copied from interface:FeatureManagerWhether to use the new pdl or not- Specified by:
isPdlEnabledin interfaceFeatureManager
-
isFusionDeploymentsSupportEnabled
public boolean isFusionDeploymentsSupportEnabled()
- Specified by:
isFusionDeploymentsSupportEnabledin interfaceFeatureManager- Returns:
- Whether Bamboo should provide environment related data to Fusion app (BDEV-4007)
-
isRemovingLabelsAndCommentsAllowedForNonPlanAdmin
public boolean isRemovingLabelsAndCommentsAllowedForNonPlanAdmin()
Description copied from interface:FeatureManagerReturns true if EDIT permission on plan is not required for removing plans and labels- Specified by:
isRemovingLabelsAndCommentsAllowedForNonPlanAdminin interfaceFeatureManager- Returns:
-
getUnconfigurableFeatureDefaults
public UnconfigurableFeatureDefaults getUnconfigurableFeatureDefaults()
- Specified by:
getUnconfigurableFeatureDefaultsin interfaceFeatureManager
-
isUpdatingStashWithBuildStatusEnabled
public boolean isUpdatingStashWithBuildStatusEnabled()
Description copied from interface:FeatureManagerWhether updating Stash with build status after builds are completed is enabled.- Specified by:
isUpdatingStashWithBuildStatusEnabledin interfaceFeatureManager- Returns:
trueif updating stash (Bitbucket Server) with build statuses is enabled
-
isUpdatingStashWithDeploymentsEnabled
public boolean isUpdatingStashWithDeploymentsEnabled()
Description copied from interface:FeatureManagerWhether updating Stash (Bitbucket Server) with deployments from deployment projects is enabled- Specified by:
isUpdatingStashWithDeploymentsEnabledin interfaceFeatureManager- Returns:
trueif deployments should be posted to Stash (Bitbucket Server)
-
isUpdatingStashWithExtendedBuildStatusEnabled
public boolean isUpdatingStashWithExtendedBuildStatusEnabled()
Description copied from interface:FeatureManagerWhether updating Stash with extended build statuses is disabled- Specified by:
isUpdatingStashWithExtendedBuildStatusEnabledin interfaceFeatureManager- Returns:
falseif build statuses should be posted to the legacy endpoint. Otherwisetrue
-
isPublicIpRequiredForVpc
public boolean isPublicIpRequiredForVpc()
Description copied from interface:FeatureManagerWhether the current Bamboo setup prevents people from using VPCs unless their instances have a public IP.- Specified by:
isPublicIpRequiredForVpcin interfaceFeatureManager
-
isRemoteAgentShellEnabled
public boolean isRemoteAgentShellEnabled()
- Specified by:
isRemoteAgentShellEnabledin interfaceFeatureManager
-
isGravatarConfigurable
public boolean isGravatarConfigurable()
- Specified by:
isGravatarConfigurablein interfaceFeatureManager
-
isArtifactStorageSpaceLimited
public boolean isArtifactStorageSpaceLimited()
Description copied from interface:FeatureManagerWhether server-side artifact storage space is limited according toAdministrationConfiguration.getStorageLimit().- Specified by:
isArtifactStorageSpaceLimitedin interfaceFeatureManager
-
isSoxComplianceModeConfigurable
public boolean isSoxComplianceModeConfigurable()
Description copied from interface:FeatureManagerWhether SOX compliance is configurable (if not then it is disabled)- Specified by:
isSoxComplianceModeConfigurablein interfaceFeatureManager
-
isRepositoryDashboardEnabled
public boolean isRepositoryDashboardEnabled()
Description copied from interface:FeatureManagerWhether new repository UI is enabled.- Specified by:
isRepositoryDashboardEnabledin interfaceFeatureManager
-
isArtifactHandlerUiEnabled
public boolean isArtifactHandlerUiEnabled()
Description copied from interface:FeatureManagerWhether we let the user configure artifact handlers.- Specified by:
isArtifactHandlerUiEnabledin interfaceFeatureManager
-
isRepositoryStoredSpecsEnabled
public boolean isRepositoryStoredSpecsEnabled()
- Specified by:
isRepositoryStoredSpecsEnabledin interfaceFeatureManager- Returns:
- true when Repository Stored Specs (RSS) feature is enabled (do not mistake it with enabling RSS processing accessible from Administration / Security Settings)
-
isDockerPipelinesEnabled
public boolean isDockerPipelinesEnabled()
- Specified by:
isDockerPipelinesEnabledin interfaceFeatureManager- Returns:
- true if docker pipelines feature is enabled.
-
isCrowdRecoveryModeEnabled
public boolean isCrowdRecoveryModeEnabled()
- Specified by:
isCrowdRecoveryModeEnabledin interfaceFeatureManager- Returns:
- true if Bamboo started in password recovery mode, -Datlassian.recovery.password=password
-
isRssPollingEnabled
public boolean isRssPollingEnabled()
- Specified by:
isRssPollingEnabledin interfaceFeatureManager- Returns:
- true if polling for rss changes is enabled
-
isCreateDeploymentGrantedByProjects
public boolean isCreateDeploymentGrantedByProjects()
- Specified by:
isCreateDeploymentGrantedByProjectsin interfaceFeatureManager- Returns:
- true if create permission on any project grants create deployment
-
isPerformanceDataGatheringEnabled
public boolean isPerformanceDataGatheringEnabled()
Description copied from interface:FeatureManagerReturns true if Bamboo is measuring and gathering performance data.- Specified by:
isPerformanceDataGatheringEnabledin interfaceFeatureManager
-
isArtifactsAsLogsEnabled
public boolean isArtifactsAsLogsEnabled()
Description copied from interface:FeatureManagerTrue if live logs can be switched off (logs as artifacts enabled) or instance is Data Center.- Specified by:
isArtifactsAsLogsEnabledin interfaceFeatureManager
-
isDataCenter
public boolean isDataCenter()
- Specified by:
isDataCenterin interfaceFeatureManager
-
isProjectLevelBuildResourcesEnabled
public boolean isProjectLevelBuildResourcesEnabled()
Description copied from interface:FeatureManagerTrue if project level build resources are enabled- Specified by:
isProjectLevelBuildResourcesEnabledin interfaceFeatureManager
-
isSeamlessRestartsPersistenceEnabled
public boolean isSeamlessRestartsPersistenceEnabled()
Description copied from interface:FeatureManagerTrue if seamless restarts' persistence is turned on.- Specified by:
isSeamlessRestartsPersistenceEnabledin interfaceFeatureManager
-
isSeamlessRestartEnabled
public boolean isSeamlessRestartEnabled()
Description copied from interface:FeatureManagerTrue if seamless restarts are currently enabled.- Specified by:
isSeamlessRestartEnabledin interfaceFeatureManager
-
isViewConfigurationPermissionEnabled
public boolean isViewConfigurationPermissionEnabled()
Description copied from interface:FeatureManagerTrue if view configuration is enabled.- Specified by:
isViewConfigurationPermissionEnabledin interfaceFeatureManager
-
isAlwaysCreatePlanSpecsResult
public boolean isAlwaysCreatePlanSpecsResult()
Description copied from interface:FeatureManagerTrue if RSS should always create specs result, even if plan is not changed by a commit.- Specified by:
isAlwaysCreatePlanSpecsResultin interfaceFeatureManager
-
isHotSwapImportEnabled
public boolean isHotSwapImportEnabled()
Description copied from interface:FeatureManagerTrue if the hot swap import is available on the Bamboo instance.- Specified by:
isHotSwapImportEnabledin interfaceFeatureManager
-
-