com.atlassian.bamboo.configuration
Class AdministrationConfiguration

java.lang.Object
  extended by com.atlassian.bamboo.configuration.AdministrationConfiguration
All Implemented Interfaces:
java.io.Serializable

@NotThreadSafe
public class AdministrationConfiguration
extends java.lang.Object
implements java.io.Serializable

This class is a POJO holding the administrator supplied configuration.

See Also:
Serialized Form

Field Summary
static int DEFAULT_BUILD_IN_QUEUE_TIMEOUT
           
static java.lang.String DEFAULT_URL
           
 
Constructor Summary
AdministrationConfiguration()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Auto-generated, reflection based equals
 java.lang.String getBaseUrl()
          What is the base url for this server?
 BuildExpiryConfig getBuildExpiryConfig()
           
 int getBuildHangedInQueueNotificationTimeout()
           
 BuildHangingConfig getBuildHangingConfig()
           
 CaptchaConfiguration getCaptchaConfiguration()
           
 ConcurrentBuildConfig getConcurrentBuildConfig()
           
 BambooCurrentApplication getCurrentApplication()
           
 ElasticConfiguration getElasticConfig()
           
 java.lang.String getGlobalVariable(java.lang.String key)
          Deprecated. since 3.1 use VariableDefinitionManager instead
 java.util.Map<java.lang.String,java.lang.String> getGlobalVariables()
          Deprecated. since 3.1 use VariableDefinitionManager instead
 java.lang.String getInstanceName()
           
 ScheduleBackupConfiguration getScheduleBackupConfiguration()
           
 java.lang.String getSystemProperty(java.lang.String key)
           
 int hashCode()
          Auto-generated, reflection based hashcode
 boolean isAuditLoggingEnabled()
           
 boolean isEnableAnonymousAccess()
           
 boolean isEnableExternalUserManagement()
           
 boolean isEnableRestrictedAdmin()
           
 boolean isEnableSignup()
           
 boolean isEnableViewContactDetails()
           
 boolean isGravatarSupportEnabled()
           
 boolean isRemoteAgentFunctionEnabled()
           
 boolean isRemoteApiEnabled()
           
 boolean isUseGzipCompression()
          Should we use gzip compression to compress Bamboo web pages?

This is useful if Bamboo is being run over slow networks.

 void removeGlobalVariable(java.lang.String key)
          Deprecated. since 3.1 use VariableDefinitionManager instead
 void setAuditLoggingEnabled(boolean auditLoggingEnabled)
           
 void setBaseUrl(java.lang.String baseUrl)
          Define the system base url
 void setBuildExpiryConfig(BuildExpiryConfig buildExpiryConfig)
           
 void setBuildHangedInQueueNotificationTimeout(int buildHangedInQueueNotificationTimeout)
           
 void setBuildHangingConfig(BuildHangingConfig myBuildHangingConfig)
           
 void setCaptchaConfiguration(CaptchaConfiguration captchaConfiguration)
           
 void setConcurrentBuildConfig(ConcurrentBuildConfig concurrentBuildConfig)
           
 void setCurrentApplication(BambooCurrentApplication currentApplication)
           
 void setElasticConfig(ElasticConfiguration elasticConfig)
           
 void setEnableAnonymousAccess(boolean enableAnonymousAccess)
           
 void setEnableExternalUserManagement(boolean enableExternalUserManagement)
           
 void setEnableRemoteApi(boolean enableRemoteApi)
           
 void setEnableRestrictedAdmin(boolean enableRestrictedAdmin)
           
 void setEnableSignup(boolean enableSignup)
           
 void setEnableViewContactDetails(boolean enableViewContactDetails)
           
 void setGlobalVariable(java.lang.String key, java.lang.String value)
          Deprecated. since 3.1 use VariableDefinitionManager instead
 void setGravatarSupportEnabled(boolean gravatarSupportEnabled)
           
 void setInstanceName(java.lang.String instanceName)
           
 void setRemoteAgentFunctionEnabled(boolean enabled)
           
 void setScheduleBackupConfiguration(ScheduleBackupConfiguration scheduleBackupConfiguration)
           
 void setSystemProperty(java.lang.String key, java.lang.String value)
           
 void setUseGzipCompression(boolean useGzipCompression)
          Specify if we should we use gzip compression to compress Bamboo web pages.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_URL

public static final java.lang.String DEFAULT_URL
See Also:
Constant Field Values

DEFAULT_BUILD_IN_QUEUE_TIMEOUT

public static final int DEFAULT_BUILD_IN_QUEUE_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

AdministrationConfiguration

public AdministrationConfiguration()
Method Detail

getBaseUrl

public java.lang.String getBaseUrl()
What is the base url for this server?

Returns:
the base url

setBaseUrl

public void setBaseUrl(java.lang.String baseUrl)
Define the system base url

Parameters:
baseUrl - the url

isUseGzipCompression

public boolean isUseGzipCompression()
Should we use gzip compression to compress Bamboo web pages?

This is useful if Bamboo is being run over slow networks. It incurs a slight performance penalty, and may not work for non-english languages.

Returns:
true iff we require gzip compression

setUseGzipCompression

public void setUseGzipCompression(boolean useGzipCompression)
Specify if we should we use gzip compression to compress Bamboo web pages.

Parameters:
useGzipCompression -

isEnableSignup

public boolean isEnableSignup()

setEnableSignup

public void setEnableSignup(boolean enableSignup)

isEnableAnonymousAccess

public boolean isEnableAnonymousAccess()

setEnableAnonymousAccess

public void setEnableAnonymousAccess(boolean enableAnonymousAccess)

isEnableExternalUserManagement

public boolean isEnableExternalUserManagement()

getCaptchaConfiguration

public CaptchaConfiguration getCaptchaConfiguration()

setCaptchaConfiguration

public void setCaptchaConfiguration(CaptchaConfiguration captchaConfiguration)

getCurrentApplication

@Nullable
public BambooCurrentApplication getCurrentApplication()

setCurrentApplication

public void setCurrentApplication(BambooCurrentApplication currentApplication)

getConcurrentBuildConfig

@NotNull
public ConcurrentBuildConfig getConcurrentBuildConfig()

setConcurrentBuildConfig

public void setConcurrentBuildConfig(ConcurrentBuildConfig concurrentBuildConfig)

setEnableExternalUserManagement

public void setEnableExternalUserManagement(boolean enableExternalUserManagement)

isEnableViewContactDetails

public boolean isEnableViewContactDetails()

setEnableViewContactDetails

public void setEnableViewContactDetails(boolean enableViewContactDetails)

isRemoteApiEnabled

public boolean isRemoteApiEnabled()

setEnableRemoteApi

public void setEnableRemoteApi(boolean enableRemoteApi)

setBuildExpiryConfig

public void setBuildExpiryConfig(BuildExpiryConfig buildExpiryConfig)

getBuildExpiryConfig

public BuildExpiryConfig getBuildExpiryConfig()

getElasticConfig

@Nullable
public ElasticConfiguration getElasticConfig()

setElasticConfig

public void setElasticConfig(ElasticConfiguration elasticConfig)

equals

public boolean equals(java.lang.Object o)
Auto-generated, reflection based equals

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Auto-generated, reflection based hashcode

Overrides:
hashCode in class java.lang.Object

setSystemProperty

public void setSystemProperty(java.lang.String key,
                              java.lang.String value)

getSystemProperty

public java.lang.String getSystemProperty(java.lang.String key)

setGlobalVariable

@Deprecated
public void setGlobalVariable(java.lang.String key,
                                         java.lang.String value)
Deprecated. since 3.1 use VariableDefinitionManager instead

Set a global variable

Parameters:
key - of the variable
value - of the variable

getGlobalVariable

@Nullable
@Deprecated
public java.lang.String getGlobalVariable(java.lang.String key)
Deprecated. since 3.1 use VariableDefinitionManager instead

Get the value for a global variable

Parameters:
key - of the variable to get value of.
Returns:
the value of the global variable with the given key.

removeGlobalVariable

@Deprecated
public void removeGlobalVariable(java.lang.String key)
Deprecated. since 3.1 use VariableDefinitionManager instead

Remove a specific global variable.

Parameters:
key - of the variable to remove

getGlobalVariables

@NotNull
@Deprecated
public java.util.Map<java.lang.String,java.lang.String> getGlobalVariables()
Deprecated. since 3.1 use VariableDefinitionManager instead

Returns:
all global variables in Bamboo

getScheduleBackupConfiguration

public ScheduleBackupConfiguration getScheduleBackupConfiguration()

setScheduleBackupConfiguration

public void setScheduleBackupConfiguration(ScheduleBackupConfiguration scheduleBackupConfiguration)

getInstanceName

public java.lang.String getInstanceName()

setInstanceName

public void setInstanceName(java.lang.String instanceName)

isRemoteAgentFunctionEnabled

public boolean isRemoteAgentFunctionEnabled()

setRemoteAgentFunctionEnabled

public void setRemoteAgentFunctionEnabled(boolean enabled)

getBuildHangingConfig

public BuildHangingConfig getBuildHangingConfig()

setBuildHangingConfig

public void setBuildHangingConfig(BuildHangingConfig myBuildHangingConfig)

isGravatarSupportEnabled

public boolean isGravatarSupportEnabled()

setGravatarSupportEnabled

public void setGravatarSupportEnabled(boolean gravatarSupportEnabled)

getBuildHangedInQueueNotificationTimeout

public int getBuildHangedInQueueNotificationTimeout()

setBuildHangedInQueueNotificationTimeout

public void setBuildHangedInQueueNotificationTimeout(int buildHangedInQueueNotificationTimeout)

isEnableRestrictedAdmin

public boolean isEnableRestrictedAdmin()

setEnableRestrictedAdmin

public void setEnableRestrictedAdmin(boolean enableRestrictedAdmin)

isAuditLoggingEnabled

public boolean isAuditLoggingEnabled()

setAuditLoggingEnabled

public void setAuditLoggingEnabled(boolean auditLoggingEnabled)


Copyright © 2011 Atlassian. All Rights Reserved.