Class GeneralConfigurationImpl
- java.lang.Object
-
- com.atlassian.bamboo.admin.configuration.GeneralConfigurationImpl
-
- All Implemented Interfaces:
GeneralConfiguration
public class GeneralConfigurationImpl extends Object implements GeneralConfiguration
-
-
Constructor Summary
Constructors Constructor Description GeneralConfigurationImpl(AdministrationConfiguration administrationConfiguration, String brokerURI, String brokerClientURI)
GeneralConfigurationImpl(String instanceName, String baseUrl, String gravatarServerUrl, String brokerURI, String brokerClientURI, Integer dashboardDefaultPageSize, Integer branchDetectionIntervalSeconds, Boolean gravatarSupportEnabled, Boolean gzipCompressionEnabled, Boolean rssPollingEnabled, String rssPollingCronExpression, Boolean quietPeriodGloballyDisabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseUrl()
Get base urlInteger
getBranchDetectionIntervalSeconds()
Get branch detection intervalString
getBrokerClientURI()
Get broker client URIString
getBrokerURI()
Get broker URIInteger
getDashboardDefaultPageSize()
Get default page size of the dashboardString
getGravatarServerUrl()
Get gravatar server urlString
getInstanceName()
Get instance nameString
getRssPollingCronExpression()
Cron expression for RSS polling.Boolean
isGravatarSupportEnabled()
Is gravatar support enabled?Boolean
isGzipCompressionEnabled()
Is Gzip Compression Enabled?Boolean
isQuietPeriodGloballyDisabled()
Whether the quiet period is disabled globally or can be configured per repository.Boolean
isRssPollingEnabled()
Is polling for rss changes enabled.void
setBaseUrl(String baseUrl)
Set the base url for this servervoid
setBranchDetectionIntervalSeconds(Integer branchDetectionIntervalSeconds)
Set the branch detection interval (in seconds)void
setBrokerClientURI(String brokerClientURI)
Set the client broker urlvoid
setBrokerURI(String brokerURI)
Set the broker urivoid
setDashboardDefaultPageSize(Integer dashboardDefaultPageSize)
Set the default page size for the dashboardvoid
setGravatarServerUrl(String gravatarServerUrl)
Set the gravatar server urlvoid
setGravatarSupportEnabled(Boolean enableGravatarSupport)
Set whether gravatar support is enabledvoid
setGzipCompressionEnabled(Boolean enableGzipCompression)
Set whether gzip compression is enabledvoid
setInstanceName(String instanceName)
Set the instance namevoid
setQuietPeriodGloballyDisabled(Boolean quietPeriodGloballyDisabled)
Sets a quiet period globally.void
setRssPollingCronExpression(String rssPollingCronExpression)
Set cron expression for RSS polling.void
setRssPollingEnabled(Boolean rssPollingEnabled)
Set whether polling for rss changes enabled.
-
-
-
Constructor Detail
-
GeneralConfigurationImpl
public GeneralConfigurationImpl(AdministrationConfiguration administrationConfiguration, String brokerURI, String brokerClientURI)
-
GeneralConfigurationImpl
public GeneralConfigurationImpl(String instanceName, String baseUrl, String gravatarServerUrl, String brokerURI, String brokerClientURI, Integer dashboardDefaultPageSize, Integer branchDetectionIntervalSeconds, Boolean gravatarSupportEnabled, Boolean gzipCompressionEnabled, Boolean rssPollingEnabled, String rssPollingCronExpression, Boolean quietPeriodGloballyDisabled)
-
-
Method Detail
-
setInstanceName
public void setInstanceName(String instanceName)
Description copied from interface:GeneralConfiguration
Set the instance name- Specified by:
setInstanceName
in interfaceGeneralConfiguration
-
setBaseUrl
public void setBaseUrl(String baseUrl)
Description copied from interface:GeneralConfiguration
Set the base url for this server- Specified by:
setBaseUrl
in interfaceGeneralConfiguration
-
setGravatarServerUrl
public void setGravatarServerUrl(String gravatarServerUrl)
Description copied from interface:GeneralConfiguration
Set the gravatar server url- Specified by:
setGravatarServerUrl
in interfaceGeneralConfiguration
-
setBrokerURI
public void setBrokerURI(String brokerURI)
Description copied from interface:GeneralConfiguration
Set the broker uri- Specified by:
setBrokerURI
in interfaceGeneralConfiguration
-
setBrokerClientURI
public void setBrokerClientURI(String brokerClientURI)
Description copied from interface:GeneralConfiguration
Set the client broker url- Specified by:
setBrokerClientURI
in interfaceGeneralConfiguration
-
setDashboardDefaultPageSize
public void setDashboardDefaultPageSize(Integer dashboardDefaultPageSize)
Description copied from interface:GeneralConfiguration
Set the default page size for the dashboard- Specified by:
setDashboardDefaultPageSize
in interfaceGeneralConfiguration
-
setBranchDetectionIntervalSeconds
public void setBranchDetectionIntervalSeconds(Integer branchDetectionIntervalSeconds)
Description copied from interface:GeneralConfiguration
Set the branch detection interval (in seconds)- Specified by:
setBranchDetectionIntervalSeconds
in interfaceGeneralConfiguration
-
setGravatarSupportEnabled
public void setGravatarSupportEnabled(Boolean enableGravatarSupport)
Description copied from interface:GeneralConfiguration
Set whether gravatar support is enabled- Specified by:
setGravatarSupportEnabled
in interfaceGeneralConfiguration
-
setGzipCompressionEnabled
public void setGzipCompressionEnabled(Boolean enableGzipCompression)
Description copied from interface:GeneralConfiguration
Set whether gzip compression is enabled- Specified by:
setGzipCompressionEnabled
in interfaceGeneralConfiguration
-
getInstanceName
public String getInstanceName()
Description copied from interface:GeneralConfiguration
Get instance name- Specified by:
getInstanceName
in interfaceGeneralConfiguration
- Returns:
- Instance Name
-
getBaseUrl
public String getBaseUrl()
Description copied from interface:GeneralConfiguration
Get base url- Specified by:
getBaseUrl
in interfaceGeneralConfiguration
- Returns:
- Base Url
-
getGravatarServerUrl
public String getGravatarServerUrl()
Description copied from interface:GeneralConfiguration
Get gravatar server url- Specified by:
getGravatarServerUrl
in interfaceGeneralConfiguration
- Returns:
- gravatar server url
-
getBrokerURI
public String getBrokerURI()
Description copied from interface:GeneralConfiguration
Get broker URI- Specified by:
getBrokerURI
in interfaceGeneralConfiguration
- Returns:
- Broker URI
-
getBrokerClientURI
public String getBrokerClientURI()
Description copied from interface:GeneralConfiguration
Get broker client URI- Specified by:
getBrokerClientURI
in interfaceGeneralConfiguration
- Returns:
- Broker Client URI
-
getDashboardDefaultPageSize
public Integer getDashboardDefaultPageSize()
Description copied from interface:GeneralConfiguration
Get default page size of the dashboard- Specified by:
getDashboardDefaultPageSize
in interfaceGeneralConfiguration
- Returns:
- dashboard default page size
-
getBranchDetectionIntervalSeconds
public Integer getBranchDetectionIntervalSeconds()
Description copied from interface:GeneralConfiguration
Get branch detection interval- Specified by:
getBranchDetectionIntervalSeconds
in interfaceGeneralConfiguration
- Returns:
- branch detection interval (in seconds)
-
isGravatarSupportEnabled
public Boolean isGravatarSupportEnabled()
Description copied from interface:GeneralConfiguration
Is gravatar support enabled?- Specified by:
isGravatarSupportEnabled
in interfaceGeneralConfiguration
- Returns:
- true iff gravatar support is enabled
-
isGzipCompressionEnabled
public Boolean isGzipCompressionEnabled()
Description copied from interface:GeneralConfiguration
Is Gzip Compression Enabled?- Specified by:
isGzipCompressionEnabled
in interfaceGeneralConfiguration
- Returns:
- true iff gzip compression is enabled
-
isRssPollingEnabled
public Boolean isRssPollingEnabled()
Description copied from interface:GeneralConfiguration
Is polling for rss changes enabled.- Specified by:
isRssPollingEnabled
in interfaceGeneralConfiguration
-
setRssPollingEnabled
public void setRssPollingEnabled(Boolean rssPollingEnabled)
Description copied from interface:GeneralConfiguration
Set whether polling for rss changes enabled.- Specified by:
setRssPollingEnabled
in interfaceGeneralConfiguration
-
getRssPollingCronExpression
public String getRssPollingCronExpression()
Description copied from interface:GeneralConfiguration
Cron expression for RSS polling.- Specified by:
getRssPollingCronExpression
in interfaceGeneralConfiguration
-
setRssPollingCronExpression
public void setRssPollingCronExpression(String rssPollingCronExpression)
Description copied from interface:GeneralConfiguration
Set cron expression for RSS polling.- Specified by:
setRssPollingCronExpression
in interfaceGeneralConfiguration
-
isQuietPeriodGloballyDisabled
public Boolean isQuietPeriodGloballyDisabled()
Description copied from interface:GeneralConfiguration
Whether the quiet period is disabled globally or can be configured per repository.- Specified by:
isQuietPeriodGloballyDisabled
in interfaceGeneralConfiguration
-
setQuietPeriodGloballyDisabled
public void setQuietPeriodGloballyDisabled(Boolean quietPeriodGloballyDisabled)
Description copied from interface:GeneralConfiguration
Sets a quiet period globally. If disabled, a quiet period won't be used on any repository. If enabled, the configuration is repository specific.- Specified by:
setQuietPeriodGloballyDisabled
in interfaceGeneralConfiguration
-
-