Class AdministrationConfigurationServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.admin.configuration.AdministrationConfigurationServiceImpl
-
- All Implemented Interfaces:
AdministrationConfigurationService
public class AdministrationConfigurationServiceImpl extends Object implements AdministrationConfigurationService
Default implementation ofcom.atlassian.bamboo.admin.configuration.AdministrationConfigurationService
- Since:
- 5.9
-
-
Constructor Summary
Constructors Constructor Description AdministrationConfigurationServiceImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, BranchAndTagDetectionJobScheduler branchAndTagDetectionJobScheduler, FeatureManager featureManager, BootstrapManager bootstrapManager, BambooPermissionManager bambooPermissionManager, PullRequestDetectionJobScheduler pullRequestDetectionJobScheduler, RepositoryStoredSpecsPollingScheduler repositoryStoredSpecsPollingScheduler, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdministrationConfiguration
getAdministrationConfiguration()
Retrieve bamboo administration configurationString
getBrokerClientURI()
Get broker client uriString
getBrokerURI()
Get broker uriprotected boolean
hasRestrictedAdministrationPermission()
void
setBrokerClientURI(String brokerClientUri)
Set broker client urivoid
setBrokerURI(String brokerUri)
Set broker urivoid
updateAdministrationConfiguration(AdministrationConfiguration administrationConfiguration)
Update bamboo administration configurationConcurrentBuildConfig
updateBuildConcurrency(@Nullable Boolean isEnabled, @Nullable Integer numberOfConcurrentBuilds)
Update bamboo concurrent build configuration
-
-
-
Constructor Detail
-
AdministrationConfigurationServiceImpl
public AdministrationConfigurationServiceImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, BranchAndTagDetectionJobScheduler branchAndTagDetectionJobScheduler, FeatureManager featureManager, BootstrapManager bootstrapManager, BambooPermissionManager bambooPermissionManager, PullRequestDetectionJobScheduler pullRequestDetectionJobScheduler, RepositoryStoredSpecsPollingScheduler repositoryStoredSpecsPollingScheduler, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
updateAdministrationConfiguration
public void updateAdministrationConfiguration(AdministrationConfiguration administrationConfiguration) throws WebValidationException, org.quartz.SchedulerException
Description copied from interface:AdministrationConfigurationService
Update bamboo administration configuration- Specified by:
updateAdministrationConfiguration
in interfaceAdministrationConfigurationService
- Throws:
WebValidationException
org.quartz.SchedulerException
-
updateBuildConcurrency
public ConcurrentBuildConfig updateBuildConcurrency(@Nullable @Nullable Boolean isEnabled, @Nullable @Nullable Integer numberOfConcurrentBuilds) throws WebValidationException
Description copied from interface:AdministrationConfigurationService
Update bamboo concurrent build configuration- Specified by:
updateBuildConcurrency
in interfaceAdministrationConfigurationService
- Returns:
- the updated concurrent build config
- Throws:
WebValidationException
-
hasRestrictedAdministrationPermission
protected boolean hasRestrictedAdministrationPermission()
-
getAdministrationConfiguration
public AdministrationConfiguration getAdministrationConfiguration()
Description copied from interface:AdministrationConfigurationService
Retrieve bamboo administration configuration- Specified by:
getAdministrationConfiguration
in interfaceAdministrationConfigurationService
- Returns:
- administration configuration
-
setBrokerURI
public void setBrokerURI(String brokerUri) throws URISyntaxException
Description copied from interface:AdministrationConfigurationService
Set broker uri- Specified by:
setBrokerURI
in interfaceAdministrationConfigurationService
- Parameters:
brokerUri
- Broker uri- Throws:
URISyntaxException
-
getBrokerURI
public String getBrokerURI() throws URISyntaxException
Description copied from interface:AdministrationConfigurationService
Get broker uri- Specified by:
getBrokerURI
in interfaceAdministrationConfigurationService
- Returns:
- broker uri
- Throws:
URISyntaxException
-
getBrokerClientURI
public String getBrokerClientURI() throws URISyntaxException
Description copied from interface:AdministrationConfigurationService
Get broker client uri- Specified by:
getBrokerClientURI
in interfaceAdministrationConfigurationService
- Returns:
- Broker client uri
- Throws:
URISyntaxException
-
setBrokerClientURI
public void setBrokerClientURI(String brokerClientUri) throws URISyntaxException
Description copied from interface:AdministrationConfigurationService
Set broker client uri- Specified by:
setBrokerClientURI
in interfaceAdministrationConfigurationService
- Parameters:
brokerClientUri
- New broker client uri- Throws:
URISyntaxException
-
-