com.atlassian.bamboo.build
Class DefaultBuildDefinitionManager

java.lang.Object
  extended by com.atlassian.bamboo.build.DefaultBuildDefinitionManager
All Implemented Interfaces:
BuildDefinitionManager

@ThreadSafe
public class DefaultBuildDefinitionManager
extends java.lang.Object
implements BuildDefinitionManager


Constructor Summary
DefaultBuildDefinitionManager(BuildDefinitionConverter buildDefinitionConverter, PlanScheduler planScheduler, PlanManager planManager, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 BuildDefinition getBuildDefinition(PlanKey planKey)
          Returns a stateful version the build definition for the Plan.
 void savePlanAndDefinition(Plan plan)
          Saves the Plan and the BuildConfiguration
 void savePlanAndDefinition(Plan plan, BuildConfiguration buildConfiguration)
          Saves the Plan and the BuildConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBuildDefinitionManager

public DefaultBuildDefinitionManager(@NotNull
                                     BuildDefinitionConverter buildDefinitionConverter,
                                     @NotNull
                                     PlanScheduler planScheduler,
                                     @NotNull
                                     PlanManager planManager,
                                     @NotNull
                                     com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

getBuildDefinition

@NotNull
public BuildDefinition getBuildDefinition(@NotNull
                                                  PlanKey planKey)
Description copied from interface: BuildDefinitionManager
Returns a stateful version the build definition for the Plan. This means that when you set various flags on it, the flags won't be lost (unless you updated your BuildDefinition.

Specified by:
getBuildDefinition in interface BuildDefinitionManager
Returns:
A populated BuildDefinition object.

savePlanAndDefinition

public void savePlanAndDefinition(Plan plan)
Description copied from interface: BuildDefinitionManager
Saves the Plan and the BuildConfiguration

Specified by:
savePlanAndDefinition in interface BuildDefinitionManager

savePlanAndDefinition

public void savePlanAndDefinition(Plan plan,
                                  BuildConfiguration buildConfiguration)
Description copied from interface: BuildDefinitionManager
Saves the Plan and the BuildConfiguration

Specified by:
savePlanAndDefinition in interface BuildDefinitionManager


Copyright © 2011 Atlassian. All Rights Reserved.