com.atlassian.bamboo
Class DefaultFeatureManager

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

@Immutable
public class DefaultFeatureManager
extends java.lang.Object
implements FeatureManager


Constructor Summary
DefaultFeatureManager()
           
 
Method Summary
 com.atlassian.fage.Option<java.lang.Long> getBuildArtifactSizeLimit()
          Maximum size of artifacts for single build result in bytes
 boolean isArtifactHandlerUiEnabled()
          Whether we let the user configure artifact handlers.
 boolean isBulkProjectRemoveAllowed()
          Whether project remove is allowed for bulk operations
 boolean isChangeBaseUrlAllowed()
           
 boolean isDetectCapabilitiesOnStartup()
          Whether to force detection of server capabilities on startup
 boolean isElasticAgentsSupported()
          Whether elasic agents are enabled
 boolean isGlobalSecuritySettingsEnabled()
          Whether you can edit the global security settings
 boolean isGzipCompressionSupported()
          Whether you can turn on GZip compression or not
 boolean isIMServerConfigurationSupported()
          WHether IM servers are configurable
 boolean isInstanceRenameSupported()
          Whether we give the option to the user o change their instance.
 boolean isLegacyRepositoryEnabled()
          Whether to turn on old repositories like CVS and Perforce
 boolean isLocalAgentsSupported()
          Whether local agents are enabled
 boolean isMailServerConfigurationSupported()
          Whether mail servers are configurable
 boolean isMavenProjectImportSupported()
          Whether you can import from a Maven pom.xml
 boolean isOAuthConsumerPluginEnabled()
          Whether the update screens for OAUth is enabled
 boolean isOnDemandInstance()
          Whether or not we're on OnDemand.
 boolean isPasswordChangeAllowed()
          Whether users are allowed to change passwords
 boolean isRemoteAgentsSupported()
          Whether remote agents are enabled
 boolean isRequiredEc2Configuration()
          Whether EC2 configuration is required for plan creation
 boolean isRequiresEc2TermsAcceptance()
          Whether EC2 configuration is blocked until users accept terms and conditions
 boolean isRestrictedAdminConfigurable()
          Whether restricted admin permission can be turn on or off
 boolean isSignupConfigurable()
          Whether you can turn on signups
 boolean isTransportSupported(TransportProtocol transportProtocol)
          Whether given transport is enabled.
 boolean isUpmFullyFunctional()
          WHether UPM is fully functional - allows install plugins
 boolean isUserManagementEnabled()
          Whether you can edit the users and groups
 boolean isUserProfileEnabled()
          Whather users can view their user profile page
 void setBambooPermissionManager(BambooPermissionManager bambooPermissionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFeatureManager

public DefaultFeatureManager()
Method Detail

isTransportSupported

public boolean isTransportSupported(@NotNull
                                    TransportProtocol transportProtocol)
Description copied from interface: FeatureManager
Whether given transport is enabled.

Specified by:
isTransportSupported in interface FeatureManager

isLocalAgentsSupported

public boolean isLocalAgentsSupported()
Description copied from interface: FeatureManager
Whether local agents are enabled

Specified by:
isLocalAgentsSupported in interface FeatureManager
Returns:

isRemoteAgentsSupported

public boolean isRemoteAgentsSupported()
Description copied from interface: FeatureManager
Whether remote agents are enabled

Specified by:
isRemoteAgentsSupported in interface FeatureManager
Returns:

isElasticAgentsSupported

public boolean isElasticAgentsSupported()
Description copied from interface: FeatureManager
Whether elasic agents are enabled

Specified by:
isElasticAgentsSupported in interface FeatureManager
Returns:

isGzipCompressionSupported

public boolean isGzipCompressionSupported()
Description copied from interface: FeatureManager
Whether you can turn on GZip compression or not

Specified by:
isGzipCompressionSupported in interface FeatureManager
Returns:

isMavenProjectImportSupported

public boolean isMavenProjectImportSupported()
Description copied from interface: FeatureManager
Whether you can import from a Maven pom.xml

Specified by:
isMavenProjectImportSupported in interface FeatureManager
Returns:

isSignupConfigurable

public boolean isSignupConfigurable()
Description copied from interface: FeatureManager
Whether you can turn on signups

Specified by:
isSignupConfigurable in interface FeatureManager
Returns:

isRestrictedAdminConfigurable

public boolean isRestrictedAdminConfigurable()
Description copied from interface: FeatureManager
Whether restricted admin permission can be turn on or off

Specified by:
isRestrictedAdminConfigurable in interface FeatureManager
Returns:

isPasswordChangeAllowed

public boolean isPasswordChangeAllowed()
Description copied from interface: FeatureManager
Whether users are allowed to change passwords

Specified by:
isPasswordChangeAllowed in interface FeatureManager
Returns:

isLegacyRepositoryEnabled

public boolean isLegacyRepositoryEnabled()
Description copied from interface: FeatureManager
Whether to turn on old repositories like CVS and Perforce

Specified by:
isLegacyRepositoryEnabled in interface FeatureManager
Returns:

isMailServerConfigurationSupported

public boolean isMailServerConfigurationSupported()
Description copied from interface: FeatureManager
Whether mail servers are configurable

Specified by:
isMailServerConfigurationSupported in interface FeatureManager
Returns:

isIMServerConfigurationSupported

public boolean isIMServerConfigurationSupported()
Description copied from interface: FeatureManager
WHether IM servers are configurable

Specified by:
isIMServerConfigurationSupported in interface FeatureManager
Returns:

isUserProfileEnabled

public boolean isUserProfileEnabled()
Description copied from interface: FeatureManager
Whather users can view their user profile page

Specified by:
isUserProfileEnabled in interface FeatureManager
Returns:

isGlobalSecuritySettingsEnabled

public boolean isGlobalSecuritySettingsEnabled()
Description copied from interface: FeatureManager
Whether you can edit the global security settings

Specified by:
isGlobalSecuritySettingsEnabled in interface FeatureManager
Returns:

isUserManagementEnabled

public boolean isUserManagementEnabled()
Description copied from interface: FeatureManager
Whether you can edit the users and groups

Specified by:
isUserManagementEnabled in interface FeatureManager
Returns:

isOAuthConsumerPluginEnabled

public boolean isOAuthConsumerPluginEnabled()
Description copied from interface: FeatureManager
Whether the update screens for OAUth is enabled

Specified by:
isOAuthConsumerPluginEnabled in interface FeatureManager
Returns:

isDetectCapabilitiesOnStartup

public boolean isDetectCapabilitiesOnStartup()
Description copied from interface: FeatureManager
Whether to force detection of server capabilities on startup

Specified by:
isDetectCapabilitiesOnStartup in interface FeatureManager
Returns:

isRequiresEc2TermsAcceptance

public boolean isRequiresEc2TermsAcceptance()
Description copied from interface: FeatureManager
Whether EC2 configuration is blocked until users accept terms and conditions

Specified by:
isRequiresEc2TermsAcceptance in interface FeatureManager
Returns:

isRequiredEc2Configuration

public boolean isRequiredEc2Configuration()
Description copied from interface: FeatureManager
Whether EC2 configuration is required for plan creation

Specified by:
isRequiredEc2Configuration in interface FeatureManager
Returns:

isBulkProjectRemoveAllowed

public boolean isBulkProjectRemoveAllowed()
Description copied from interface: FeatureManager
Whether project remove is allowed for bulk operations

Specified by:
isBulkProjectRemoveAllowed in interface FeatureManager
Returns:

getBuildArtifactSizeLimit

public com.atlassian.fage.Option<java.lang.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, Option.none() if not

isInstanceRenameSupported

public boolean isInstanceRenameSupported()
Description copied from interface: FeatureManager
Whether we give the option to the user o change their instance.

Specified by:
isInstanceRenameSupported in interface FeatureManager
Returns:

isArtifactHandlerUiEnabled

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

Specified by:
isArtifactHandlerUiEnabled in interface FeatureManager

isChangeBaseUrlAllowed

public boolean isChangeBaseUrlAllowed()
Specified by:
isChangeBaseUrlAllowed in interface FeatureManager

isUpmFullyFunctional

public boolean isUpmFullyFunctional()
Description copied from interface: FeatureManager
WHether UPM is fully functional - allows install plugins

Specified by:
isUpmFullyFunctional in interface FeatureManager
Returns:

isOnDemandInstance

public boolean isOnDemandInstance()
Description copied from interface: FeatureManager
Whether or not we're on OnDemand. Used to disable certain actions

Specified by:
isOnDemandInstance in interface FeatureManager

setBambooPermissionManager

public void setBambooPermissionManager(@NotNull
                                       BambooPermissionManager bambooPermissionManager)


Copyright © 2012 Atlassian. All Rights Reserved.