Package com.atlassian.bamboo
Class DefaultFeatureManager
java.lang.Object
com.atlassian.bamboo.DefaultFeatureManager
- All Implemented Interfaces:
FeatureManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMaximum size of artifacts for single build result in bytesbooleanTrue if RSS should always create specs result, even if plan is not changed by a commit.booleanWhether we let the user configure artifact handlers.booleanWhether server-side artifact storage space is limited according toAdministrationConfiguration.getStorageLimit().booleanbooleanbooleanbooleanWhether elastic agents are enabledbooleanbooleanbooleanTrue 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.booleanWhether 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.booleanbooleanWhether EC2 configuration is required for plan creationbooleanWhether 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 disabledbooleanWhether 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, waitMethods 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: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
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
- 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
-
isWebSudoEnabled
public boolean isWebSudoEnabled()Description copied from interface:FeatureManagerWhether web sudo checks are enabled when accessing admin pages- Specified by:
isWebSudoEnabledin interfaceFeatureManager- Returns:
trueif web sudo checks should be applied. Otherwisefalse
-
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
-
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
-
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
-