com.atlassian.bamboo.build
Class DefaultBuildDefinitionManager

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

public class DefaultBuildDefinitionManager
extends java.lang.Object
implements BuildDefinitionManager


Constructor Summary
DefaultBuildDefinitionManager(BuildDefinitionConverter buildDefinitionConverter, PlanScheduler planScheduler, com.atlassian.event.EventManager eventManager, PlanManager planManager)
           
 
Method Summary
 BuildDefinition getBuildDefinition(Plan plan)
          Returns a stateful version the build definition for the Plan.
 void removeBuildDefinition(Plan plan)
           
 void savePlanAndDefinition(Plan plan)
          Saves the Plan and the BuildConfiguration
 void savePlanAndDefinition(Plan plan, BuildConfiguration buildConfiguration)
          Saves the Plan and the BuildConfiguration
 void updateBuildDefinition(Plan plan)
          Updates the build definition in the cache
 void updateBuildDefinition(Plan plan, BuildDefinition oldBuildDefinition)
           
 
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
                                     com.atlassian.event.EventManager eventManager,
                                     @NotNull
                                     PlanManager planManager)
Method Detail

getBuildDefinition

@NotNull
public BuildDefinition getBuildDefinition(@NotNull
                                                  Plan plan)
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
Parameters:
plan - @NotNull
Returns:
A populated BuildDefinition object.

updateBuildDefinition

public void updateBuildDefinition(Plan plan)
Description copied from interface: BuildDefinitionManager
Updates the build definition in the cache

Specified by:
updateBuildDefinition in interface BuildDefinitionManager
Parameters:
plan - @NotNull

updateBuildDefinition

public void updateBuildDefinition(Plan plan,
                                  BuildDefinition oldBuildDefinition)
Specified by:
updateBuildDefinition in interface BuildDefinitionManager

removeBuildDefinition

public void removeBuildDefinition(Plan plan)
Specified by:
removeBuildDefinition in interface BuildDefinitionManager

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 © 2010 Atlassian. All Rights Reserved.