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 bytesUnconfigurableFeatureDefaults
getUnconfigurableFeatureDefaults()
boolean
isAlwaysCreatePlanSpecsResult()
True if RSS should always create specs result, even if plan is not changed by a commit.boolean
isArtifactHandlerUiEnabled()
Whether we let the user configure artifact handlers.boolean
isArtifactsAsLogsEnabled()
True if live logs can be switched off (logs as artifacts enabled) or instance is Data Center.boolean
isArtifactStorageSpaceLimited()
Whether server-side artifact storage space is limited according toAdministrationConfiguration.getStorageLimit()
.boolean
isCreateDeploymentGrantedByProjects()
boolean
isCrowdRecoveryModeEnabled()
boolean
isDataCenter()
boolean
isDockerPipelinesEnabled()
boolean
isElasticAgentsSupported()
Whether elastic agents are enabledboolean
isFusionDeploymentsSupportEnabled()
boolean
isGravatarConfigurable()
boolean
isLocalAgentsSupported()
Whether local agents are enabledboolean
isPdlEnabled()
Whether to use the new pdl or notboolean
isPerformanceDataGatheringEnabled()
Returns true if Bamboo is measuring and gathering performance data.boolean
isProjectLevelBuildResourcesEnabled()
True if project level build resources are enabledboolean
isPublicIpRequiredForVpc()
Whether the current Bamboo setup prevents people from using VPCs unless their instances have a public IP.boolean
isRemoteAgentShellEnabled()
boolean
isRemoteAgentsManagementEnabled()
Whether remote agents can be managed by adminboolean
isRemoteAgentsSupported()
Whether remote agents are enabledboolean
isRemovingLabelsAndCommentsAllowedForNonPlanAdmin()
Returns true if EDIT permission on plan is not required for removing plans and labelsboolean
isRepositoryDashboardEnabled()
Whether new repository UI is enabled.boolean
isRepositoryStoredSpecsEnabled()
boolean
isRequiredEc2Configuration()
Whether EC2 configuration is required for plan creationboolean
isRotpAdminShortcutsEnabled()
Whether to use rotp admin shortcuts or not.boolean
isRotpEnabled()
Whether to show rotp features or not.boolean
isRotpProjectShortcutsEnabled()
Whether to show rotp project shortcuts feature or not.boolean
isRssPollingEnabled()
boolean
isSeamlessRestartEnabled()
True if seamless restarts are currently enabled.boolean
isSeamlessRestartsPersistenceEnabled()
True if seamless restarts' persistence is turned on.boolean
isSoxComplianceModeConfigurable()
Whether SOX compliance is configurable (if not then it is disabled)boolean
isUpdatingStashWithBuildStatusEnabled()
Whether updating Stash with build status after builds are completed is enabled.boolean
isUpdatingStashWithDeploymentsEnabled()
Whether updating Stash (Bitbucket Server) with deployments from deployment projects is enabledboolean
isUpdatingStashWithExtendedBuildStatusEnabled()
Whether updating Stash with extended build statuses is disabledboolean
isViewConfigurationPermissionEnabled()
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:FeatureManager
Whether local agents are enabled- Specified by:
isLocalAgentsSupported
in interfaceFeatureManager
- Returns:
-
isRemoteAgentsSupported
public boolean isRemoteAgentsSupported()
Description copied from interface:FeatureManager
Whether remote agents are enabled- Specified by:
isRemoteAgentsSupported
in interfaceFeatureManager
- Returns:
-
isRemoteAgentsManagementEnabled
public boolean isRemoteAgentsManagementEnabled()
Description copied from interface:FeatureManager
Whether remote agents can be managed by admin- Specified by:
isRemoteAgentsManagementEnabled
in interfaceFeatureManager
-
isElasticAgentsSupported
public boolean isElasticAgentsSupported()
Description copied from interface:FeatureManager
Whether elastic agents are enabled- Specified by:
isElasticAgentsSupported
in interfaceFeatureManager
- Returns:
-
isRequiredEc2Configuration
public boolean isRequiredEc2Configuration()
Description copied from interface:FeatureManager
Whether EC2 configuration is required for plan creation- Specified by:
isRequiredEc2Configuration
in interfaceFeatureManager
-
getBuildArtifactSizeLimit
public Optional<Long> getBuildArtifactSizeLimit()
Description copied from interface:FeatureManager
Maximum size of artifacts for single build result in bytes- Specified by:
getBuildArtifactSizeLimit
in interfaceFeatureManager
- Returns:
- maximum artifact size in bytes when limit set, Optional.empty()) if not
-
isRotpEnabled
public boolean isRotpEnabled()
Description copied from interface:FeatureManager
Whether to show rotp features or not.- Specified by:
isRotpEnabled
in interfaceFeatureManager
-
isRotpProjectShortcutsEnabled
public boolean isRotpProjectShortcutsEnabled()
Description copied from interface:FeatureManager
Whether to show rotp project shortcuts feature or not.- Specified by:
isRotpProjectShortcutsEnabled
in interfaceFeatureManager
-
isRotpAdminShortcutsEnabled
public boolean isRotpAdminShortcutsEnabled()
Description copied from interface:FeatureManager
Whether to use rotp admin shortcuts or not.- Specified by:
isRotpAdminShortcutsEnabled
in interfaceFeatureManager
-
isPdlEnabled
public boolean isPdlEnabled()
Description copied from interface:FeatureManager
Whether to use the new pdl or not- Specified by:
isPdlEnabled
in interfaceFeatureManager
-
isFusionDeploymentsSupportEnabled
public boolean isFusionDeploymentsSupportEnabled()
- Specified by:
isFusionDeploymentsSupportEnabled
in interfaceFeatureManager
- Returns:
- Whether Bamboo should provide environment related data to Fusion app (BDEV-4007)
-
isRemovingLabelsAndCommentsAllowedForNonPlanAdmin
public boolean isRemovingLabelsAndCommentsAllowedForNonPlanAdmin()
Description copied from interface:FeatureManager
Returns true if EDIT permission on plan is not required for removing plans and labels- Specified by:
isRemovingLabelsAndCommentsAllowedForNonPlanAdmin
in interfaceFeatureManager
- Returns:
-
getUnconfigurableFeatureDefaults
public UnconfigurableFeatureDefaults getUnconfigurableFeatureDefaults()
- Specified by:
getUnconfigurableFeatureDefaults
in interfaceFeatureManager
-
isUpdatingStashWithBuildStatusEnabled
public boolean isUpdatingStashWithBuildStatusEnabled()
Description copied from interface:FeatureManager
Whether updating Stash with build status after builds are completed is enabled.- Specified by:
isUpdatingStashWithBuildStatusEnabled
in interfaceFeatureManager
- Returns:
true
if updating stash (Bitbucket Server) with build statuses is enabled
-
isUpdatingStashWithDeploymentsEnabled
public boolean isUpdatingStashWithDeploymentsEnabled()
Description copied from interface:FeatureManager
Whether updating Stash (Bitbucket Server) with deployments from deployment projects is enabled- Specified by:
isUpdatingStashWithDeploymentsEnabled
in interfaceFeatureManager
- Returns:
true
if deployments should be posted to Stash (Bitbucket Server)
-
isUpdatingStashWithExtendedBuildStatusEnabled
public boolean isUpdatingStashWithExtendedBuildStatusEnabled()
Description copied from interface:FeatureManager
Whether updating Stash with extended build statuses is disabled- Specified by:
isUpdatingStashWithExtendedBuildStatusEnabled
in interfaceFeatureManager
- Returns:
false
if build statuses should be posted to the legacy endpoint. Otherwisetrue
-
isPublicIpRequiredForVpc
public boolean isPublicIpRequiredForVpc()
Description copied from interface:FeatureManager
Whether the current Bamboo setup prevents people from using VPCs unless their instances have a public IP.- Specified by:
isPublicIpRequiredForVpc
in interfaceFeatureManager
-
isRemoteAgentShellEnabled
public boolean isRemoteAgentShellEnabled()
- Specified by:
isRemoteAgentShellEnabled
in interfaceFeatureManager
-
isGravatarConfigurable
public boolean isGravatarConfigurable()
- Specified by:
isGravatarConfigurable
in interfaceFeatureManager
-
isArtifactStorageSpaceLimited
public boolean isArtifactStorageSpaceLimited()
Description copied from interface:FeatureManager
Whether server-side artifact storage space is limited according toAdministrationConfiguration.getStorageLimit()
.- Specified by:
isArtifactStorageSpaceLimited
in interfaceFeatureManager
-
isSoxComplianceModeConfigurable
public boolean isSoxComplianceModeConfigurable()
Description copied from interface:FeatureManager
Whether SOX compliance is configurable (if not then it is disabled)- Specified by:
isSoxComplianceModeConfigurable
in interfaceFeatureManager
-
isRepositoryDashboardEnabled
public boolean isRepositoryDashboardEnabled()
Description copied from interface:FeatureManager
Whether new repository UI is enabled.- Specified by:
isRepositoryDashboardEnabled
in interfaceFeatureManager
-
isArtifactHandlerUiEnabled
public boolean isArtifactHandlerUiEnabled()
Description copied from interface:FeatureManager
Whether we let the user configure artifact handlers.- Specified by:
isArtifactHandlerUiEnabled
in interfaceFeatureManager
-
isRepositoryStoredSpecsEnabled
public boolean isRepositoryStoredSpecsEnabled()
- Specified by:
isRepositoryStoredSpecsEnabled
in 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:
isDockerPipelinesEnabled
in interfaceFeatureManager
- Returns:
- true if docker pipelines feature is enabled.
-
isCrowdRecoveryModeEnabled
public boolean isCrowdRecoveryModeEnabled()
- Specified by:
isCrowdRecoveryModeEnabled
in interfaceFeatureManager
- Returns:
- true if Bamboo started in password recovery mode, -Datlassian.recovery.password=password
-
isRssPollingEnabled
public boolean isRssPollingEnabled()
- Specified by:
isRssPollingEnabled
in interfaceFeatureManager
- Returns:
- true if polling for rss changes is enabled
-
isCreateDeploymentGrantedByProjects
public boolean isCreateDeploymentGrantedByProjects()
- Specified by:
isCreateDeploymentGrantedByProjects
in interfaceFeatureManager
- Returns:
- true if create permission on any project grants create deployment
-
isPerformanceDataGatheringEnabled
public boolean isPerformanceDataGatheringEnabled()
Description copied from interface:FeatureManager
Returns true if Bamboo is measuring and gathering performance data.- Specified by:
isPerformanceDataGatheringEnabled
in interfaceFeatureManager
-
isArtifactsAsLogsEnabled
public boolean isArtifactsAsLogsEnabled()
Description copied from interface:FeatureManager
True if live logs can be switched off (logs as artifacts enabled) or instance is Data Center.- Specified by:
isArtifactsAsLogsEnabled
in interfaceFeatureManager
-
isDataCenter
public boolean isDataCenter()
- Specified by:
isDataCenter
in interfaceFeatureManager
-
isProjectLevelBuildResourcesEnabled
public boolean isProjectLevelBuildResourcesEnabled()
Description copied from interface:FeatureManager
True if project level build resources are enabled- Specified by:
isProjectLevelBuildResourcesEnabled
in interfaceFeatureManager
-
isSeamlessRestartsPersistenceEnabled
public boolean isSeamlessRestartsPersistenceEnabled()
Description copied from interface:FeatureManager
True if seamless restarts' persistence is turned on.- Specified by:
isSeamlessRestartsPersistenceEnabled
in interfaceFeatureManager
-
isSeamlessRestartEnabled
public boolean isSeamlessRestartEnabled()
Description copied from interface:FeatureManager
True if seamless restarts are currently enabled.- Specified by:
isSeamlessRestartEnabled
in interfaceFeatureManager
-
isViewConfigurationPermissionEnabled
public boolean isViewConfigurationPermissionEnabled()
Description copied from interface:FeatureManager
True if view configuration is enabled.- Specified by:
isViewConfigurationPermissionEnabled
in interfaceFeatureManager
-
isAlwaysCreatePlanSpecsResult
public boolean isAlwaysCreatePlanSpecsResult()
Description copied from interface:FeatureManager
True if RSS should always create specs result, even if plan is not changed by a commit.- Specified by:
isAlwaysCreatePlanSpecsResult
in interfaceFeatureManager
-
-