com.atlassian.bamboo.build
Interface BuildDefinitionManager

All Known Implementing Classes:
DefaultBuildDefinitionManager

public interface BuildDefinitionManager

A manager for stateful BuildDefinition.


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)
           
 

Method Detail

getBuildDefinition

BuildDefinition getBuildDefinition(Plan plan)
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.

Parameters:
plan - @NotNull
Returns:
A populated BuildDefinition object.

updateBuildDefinition

void updateBuildDefinition(Plan plan)
Updates the build definition in the cache

Parameters:
plan - @NotNull

updateBuildDefinition

void updateBuildDefinition(Plan plan,
                           BuildDefinition oldBuildDefinition)

removeBuildDefinition

void removeBuildDefinition(Plan plan)

savePlanAndDefinition

void savePlanAndDefinition(Plan plan)
Saves the Plan and the BuildConfiguration

Parameters:
plan -

savePlanAndDefinition

void savePlanAndDefinition(Plan plan,
                           BuildConfiguration buildConfiguration)
Saves the Plan and the BuildConfiguration

Parameters:
plan -
buildConfiguration -


Copyright © 2010 Atlassian. All Rights Reserved.