com.atlassian.bamboo.build.strategy
Class BuildStrategyConfigurationServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.build.strategy.BuildStrategyConfigurationServiceImpl
All Implemented Interfaces:
BuildStrategyConfigurationService

public class BuildStrategyConfigurationServiceImpl
extends Object
implements BuildStrategyConfigurationService


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.build.strategy.BuildStrategyConfigurationService
NEW_REPOSITORY_INDICATOR
 
Constructor Summary
BuildStrategyConfigurationServiceImpl(TriggerTypeManager triggerTypeManager, TriggerConfigurationService triggerConfigurationService, BuildStrategyManager buildStrategyManager, PlanManager planManager)
           
 
Method Summary
 BuildStrategy createBuildStrategy(PlanKey planKey, String userDescription, Set<Long> triggeringRepositories, org.apache.commons.configuration.HierarchicalConfiguration configuration)
          Creates a BuildStrategy and saves it in Chain configuration.
 void deleteBuildStrategy(PlanKey planKey, long buildStrategyId)
          Delete a given BuildStrategy from Chain configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildStrategyConfigurationServiceImpl

public BuildStrategyConfigurationServiceImpl(@NotNull
                                             TriggerTypeManager triggerTypeManager,
                                             @NotNull
                                             TriggerConfigurationService triggerConfigurationService,
                                             @NotNull
                                             BuildStrategyManager buildStrategyManager,
                                             @NotNull
                                             PlanManager planManager)
Method Detail

createBuildStrategy

public BuildStrategy createBuildStrategy(@NotNull
                                         PlanKey planKey,
                                         @NotNull
                                         String userDescription,
                                         @NotNull
                                         Set<Long> triggeringRepositories,
                                         @NotNull
                                         org.apache.commons.configuration.HierarchicalConfiguration configuration)
                                  throws IllegalArgumentException
Description copied from interface: BuildStrategyConfigurationService
Creates a BuildStrategy and saves it in Chain configuration.

Specified by:
createBuildStrategy in interface BuildStrategyConfigurationService
Parameters:
planKey - of the plan to add the build strategy to, plan should be Chain
Throws:
IllegalArgumentException - if planKey is invalid (e.g. doesn't exist or is not a Chain)

deleteBuildStrategy

public void deleteBuildStrategy(@NotNull
                                PlanKey planKey,
                                long buildStrategyId)
                         throws IllegalArgumentException,
                                IllegalStateException
Description copied from interface: BuildStrategyConfigurationService
Delete a given BuildStrategy from Chain configuration.

Specified by:
deleteBuildStrategy in interface BuildStrategyConfigurationService
Parameters:
planKey - for the plan to delete the Build Strategy from.
buildStrategyId - of the Build Strategy to delete.
Throws:
IllegalArgumentException - if planKey is invalid (e.g. doesn't exist or is not a Chain),
IllegalStateException - if the build strategy list has changed since submitting request, i.e the build strategy isn't there to delete anymore.


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.