Class DefaultFeatureManager

java.lang.Object
com.atlassian.bamboo.DefaultFeatureManager
All Implemented Interfaces:
FeatureManager

@Immutable public class DefaultFeatureManager extends Object implements FeatureManager
  • 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 interface FeatureManager
      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 interface FeatureManager
      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 interface FeatureManager
    • isElasticAgentsSupported

      public boolean isElasticAgentsSupported()
      Description copied from interface: FeatureManager
      Whether elastic agents are enabled
      Specified by:
      isElasticAgentsSupported in interface FeatureManager
      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 interface FeatureManager
    • getBuildArtifactSizeLimit

      public Optional<Long> getBuildArtifactSizeLimit()
      Description copied from interface: FeatureManager
      Maximum size of artifacts for single build result in bytes
      Specified by:
      getBuildArtifactSizeLimit in interface FeatureManager
      Returns:
      maximum artifact size in bytes when limit set, Optional.empty()) if not
    • isFusionDeploymentsSupportEnabled

      public boolean isFusionDeploymentsSupportEnabled()
      Specified by:
      isFusionDeploymentsSupportEnabled in interface FeatureManager
      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 interface FeatureManager
      Returns:
    • getUnconfigurableFeatureDefaults

      public UnconfigurableFeatureDefaults getUnconfigurableFeatureDefaults()
      Specified by:
      getUnconfigurableFeatureDefaults in interface FeatureManager
    • 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 interface FeatureManager
      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 interface FeatureManager
      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 interface FeatureManager
      Returns:
      false if build statuses should be posted to the legacy endpoint. Otherwise true
    • isWebSudoEnabled

      public boolean isWebSudoEnabled()
      Description copied from interface: FeatureManager
      Whether web sudo checks are enabled when accessing admin pages
      Specified by:
      isWebSudoEnabled in interface FeatureManager
      Returns:
      true if web sudo checks should be applied. Otherwise false
    • 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 interface FeatureManager
    • isRemoteAgentShellEnabled

      public boolean isRemoteAgentShellEnabled()
      Specified by:
      isRemoteAgentShellEnabled in interface FeatureManager
    • isGravatarConfigurable

      public boolean isGravatarConfigurable()
      Specified by:
      isGravatarConfigurable in interface FeatureManager
    • isSoxComplianceModeConfigurable

      public boolean isSoxComplianceModeConfigurable()
      Description copied from interface: FeatureManager
      Whether SOX compliance is configurable (if not then it is disabled)
      Specified by:
      isSoxComplianceModeConfigurable in interface FeatureManager
    • isRepositoryDashboardEnabled

      public boolean isRepositoryDashboardEnabled()
      Description copied from interface: FeatureManager
      Whether new repository UI is enabled.
      Specified by:
      isRepositoryDashboardEnabled in interface FeatureManager
    • isArtifactHandlerUiEnabled

      public boolean isArtifactHandlerUiEnabled()
      Description copied from interface: FeatureManager
      Whether we let the user configure artifact handlers.
      Specified by:
      isArtifactHandlerUiEnabled in interface FeatureManager
    • isRepositoryStoredSpecsEnabled

      public boolean isRepositoryStoredSpecsEnabled()
      Specified by:
      isRepositoryStoredSpecsEnabled in interface FeatureManager
      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 interface FeatureManager
      Returns:
      true if docker pipelines feature is enabled.
    • isCrowdRecoveryModeEnabled

      public boolean isCrowdRecoveryModeEnabled()
      Specified by:
      isCrowdRecoveryModeEnabled in interface FeatureManager
      Returns:
      true if Bamboo started in password recovery mode, -Datlassian.recovery.password=password
    • isRssPollingEnabled

      public boolean isRssPollingEnabled()
      Specified by:
      isRssPollingEnabled in interface FeatureManager
      Returns:
      true if polling for rss changes is enabled
    • isCreateDeploymentGrantedByProjects

      public boolean isCreateDeploymentGrantedByProjects()
      Specified by:
      isCreateDeploymentGrantedByProjects in interface FeatureManager
      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 interface FeatureManager
    • isSeamlessRestartsPersistenceEnabled

      public boolean isSeamlessRestartsPersistenceEnabled()
      Description copied from interface: FeatureManager
      True if seamless restarts' persistence is turned on.
      Specified by:
      isSeamlessRestartsPersistenceEnabled in interface FeatureManager
    • isSeamlessRestartEnabled

      public boolean isSeamlessRestartEnabled()
      Description copied from interface: FeatureManager
      True if seamless restarts are currently enabled.
      Specified by:
      isSeamlessRestartEnabled in interface FeatureManager
    • 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 interface FeatureManager
    • 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 interface FeatureManager