com.atlassian.bamboo.plan
Class DefaultPlanManager

java.lang.Object
  extended by com.atlassian.bamboo.plan.DefaultPlanManager
All Implemented Interfaces:
PlanManager

public class DefaultPlanManager
extends java.lang.Object
implements PlanManager


Constructor Summary
DefaultPlanManager(PlanDao planDao, BuildManager buildManager, ChainManager chainManager)
           
 
Method Summary
 java.util.Collection<Plan> getAllPlans()
          Returns all Plan's
 Plan getPlanById(long id)
          Returns a Plan by its id
 Plan getPlanByKey(java.lang.String planKey)
          Returns a Plan by its planKey
 void savePlan(Plan plan)
          Saves the Plan
 void updateLatestVcsKey(Plan plan, java.lang.String vcsRevisionKey)
          Updates the build to the latest passed revision key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPlanManager

public DefaultPlanManager(@NotNull
                          PlanDao planDao,
                          @NotNull
                          BuildManager buildManager,
                          @NotNull
                          ChainManager chainManager)
Method Detail

getPlanById

@Nullable
public Plan getPlanById(long id)
Description copied from interface: PlanManager
Returns a Plan by its id

Specified by:
getPlanById in interface PlanManager
Returns:

getPlanByKey

@Nullable
public Plan getPlanByKey(@NotNull
                                  java.lang.String planKey)
Description copied from interface: PlanManager
Returns a Plan by its planKey

Specified by:
getPlanByKey in interface PlanManager
Returns:
plan

getAllPlans

@NotNull
public java.util.Collection<Plan> getAllPlans()
Description copied from interface: PlanManager
Returns all Plan's

Specified by:
getAllPlans in interface PlanManager
Returns:
plans

savePlan

public void savePlan(@NotNull
                     Plan plan)
Description copied from interface: PlanManager
Saves the Plan

Specified by:
savePlan in interface PlanManager

updateLatestVcsKey

public void updateLatestVcsKey(@NotNull
                               Plan plan,
                               @NotNull
                               java.lang.String vcsRevisionKey)
Description copied from interface: PlanManager
Updates the build to the latest passed revision key

Specified by:
updateLatestVcsKey in interface PlanManager
Parameters:
plan - - Plan key
vcsRevisionKey - - revision key


Copyright © 2010 Atlassian. All Rights Reserved.