Class AdministrationConfigurationServiceImpl
java.lang.Object
com.atlassian.bamboo.admin.configuration.AdministrationConfigurationServiceImpl
- All Implemented Interfaces:
AdministrationConfigurationService
public class AdministrationConfigurationServiceImpl
extends Object
implements AdministrationConfigurationService
Default implementation of
com.atlassian.bamboo.admin.configuration.AdministrationConfigurationService
- Since:
- 5.9
-
Constructor Summary
ConstructorDescriptionAdministrationConfigurationServiceImpl
(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, BranchAndTagDetectionJobScheduler branchAndTagDetectionJobScheduler, FeatureManager featureManager, BootstrapManager bootstrapManager, BambooPermissionManager bambooPermissionManager, PullRequestDetectionJobScheduler pullRequestDetectionJobScheduler, RepositoryStoredSpecsPollingScheduler repositoryStoredSpecsPollingScheduler, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve bamboo administration configurationGet broker client uriGet broker uriprotected boolean
void
setBrokerClientURI
(String brokerClientUri) Set broker client urivoid
setBrokerURI
(String brokerUri) Set broker urivoid
updateAdministrationConfiguration
(AdministrationConfiguration administrationConfiguration) Update bamboo administration configurationupdateBuildConcurrency
(@Nullable Boolean isEnabled, @Nullable Integer numberOfConcurrentBuilds) Update bamboo concurrent build configuration
-
Constructor Details
-
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 Details
-
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
Description copied from interface:AdministrationConfigurationService
Retrieve bamboo administration configuration- Specified by:
getAdministrationConfiguration
in interfaceAdministrationConfigurationService
- Returns:
- administration configuration
-
setBrokerURI
Description copied from interface:AdministrationConfigurationService
Set broker uri- Specified by:
setBrokerURI
in interfaceAdministrationConfigurationService
- Parameters:
brokerUri
- Broker uri- Throws:
URISyntaxException
-
getBrokerURI
Description copied from interface:AdministrationConfigurationService
Get broker uri- Specified by:
getBrokerURI
in interfaceAdministrationConfigurationService
- Returns:
- broker uri
- Throws:
URISyntaxException
-
getBrokerClientURI
Description copied from interface:AdministrationConfigurationService
Get broker client uri- Specified by:
getBrokerClientURI
in interfaceAdministrationConfigurationService
- Returns:
- Broker client uri
- Throws:
URISyntaxException
-
setBrokerClientURI
Description copied from interface:AdministrationConfigurationService
Set broker client uri- Specified by:
setBrokerClientURI
in interfaceAdministrationConfigurationService
- Parameters:
brokerClientUri
- New broker client uri- Throws:
URISyntaxException
-