Package com.atlassian.bamboo
Class DefaultFeatureManager
java.lang.Object
com.atlassian.bamboo.DefaultFeatureManager
- All Implemented Interfaces:
FeatureManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMaximum size of artifacts for single build result in bytesboolean
True if RSS should always create specs result, even if plan is not changed by a commit.boolean
Whether we let the user configure artifact handlers.boolean
Whether server-side artifact storage space is limited according toAdministrationConfiguration.getStorageLimit()
.boolean
boolean
boolean
boolean
Whether elastic agents are enabledboolean
boolean
boolean
True if the hot swap import is available on the Bamboo instance.boolean
Whether local agents are enabledboolean
Whether to use the new pdl or notboolean
Returns true if Bamboo is measuring and gathering performance data.boolean
Whether the current Bamboo setup prevents people from using VPCs unless their instances have a public IP.boolean
boolean
Whether remote agents can be managed by adminboolean
Whether remote agents are enabledboolean
Returns true if EDIT permission on plan is not required for removing plans and labelsboolean
Whether new repository UI is enabled.boolean
boolean
Whether EC2 configuration is required for plan creationboolean
Whether to use rotp admin shortcuts or not.boolean
Whether to show rotp features or not.boolean
Whether to show rotp project shortcuts feature or not.boolean
boolean
True if seamless restarts are currently enabled.boolean
True if seamless restarts' persistence is turned on.boolean
Whether SOX compliance is configurable (if not then it is disabled)boolean
Whether updating Stash with build status after builds are completed is enabled.boolean
Whether updating Stash (Bitbucket Server) with deployments from deployment projects is enabledboolean
Whether updating Stash with extended build statuses is disabledboolean
Whether web sudo checks are enabled when accessing admin pagesMethods 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, isArtifactsAsLogsEnabled, isDataCenter, isExportToJavaSpecsEnabled, isProjectLevelBuildResourcesEnabled, isViewConfigurationPermissionEnabled
-
Constructor Details
-
DefaultFeatureManager
public DefaultFeatureManager()
-
-
Method Details
-
isLocalAgentsSupported
public boolean isLocalAgentsSupported()Description copied from interface:FeatureManager
Whether local agents are enabled- Specified by:
isLocalAgentsSupported
in interfaceFeatureManager
- Returns:
- true if local agents are supported, false otherwise
-
isRemoteAgentsSupported
public boolean isRemoteAgentsSupported()Description copied from interface:FeatureManager
Whether remote agents are enabled- Specified by:
isRemoteAgentsSupported
in interfaceFeatureManager
- Returns:
- true if remote agents are supported, false otherwise
-
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:
- true if elastic agents are supported, false otherwise
-
isRequiredEc2Configuration
public boolean isRequiredEc2Configuration()Description copied from interface:FeatureManager
Whether EC2 configuration is required for plan creation- Specified by:
isRequiredEc2Configuration
in interfaceFeatureManager
-
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
- 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
-
isWebSudoEnabled
public boolean isWebSudoEnabled()Description copied from interface:FeatureManager
Whether web sudo checks are enabled when accessing admin pages- Specified by:
isWebSudoEnabled
in interfaceFeatureManager
- Returns:
true
if web sudo checks should be applied. Otherwisefalse
-
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
-
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
-
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
-
isHotSwapImportEnabled
public boolean isHotSwapImportEnabled()Description copied from interface:FeatureManager
True if the hot swap import is available on the Bamboo instance.- Specified by:
isHotSwapImportEnabled
in interfaceFeatureManager
-