com.atlassian.bamboo.build
Interface PlanDependencyDao

All Superinterfaces:
BambooObjectDao, bucket.core.persistence.ObjectDao
All Known Implementing Classes:
PlanDependencyHibernateDao

public interface PlanDependencyDao
extends BambooObjectDao


Method Summary
 java.util.Collection<PlanDependency> findAllDependencies()
           
 java.util.Collection<PlanDependency> getChildNonEditableDependencies(Plan plan)
           
 java.util.Collection<PlanDependency> getChildPlanDependencies(Plan plan)
          Retrievs all plan dependencies in which the given plan features as a parent
 java.util.Collection<PlanDependency> getParentNonEditableDependencies(Plan plan)
           
 java.util.Collection<PlanDependency> getParentPlanDependencies(Plan plan)
          Retrievs all plan dependencies in which the given plan features as a child
 void removeDependenciesForPlan(Plan plan)
          Deletes any existing dependency featuring the given plan.
 
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
 

Method Detail

getChildPlanDependencies

@NotNull
java.util.Collection<PlanDependency> getChildPlanDependencies(@NotNull
                                                                      Plan plan)
Retrievs all plan dependencies in which the given plan features as a parent

Parameters:
plan - - the parent
Returns:
set of all children of the given plan

getParentPlanDependencies

@NotNull
java.util.Collection<PlanDependency> getParentPlanDependencies(@NotNull
                                                                       Plan plan)
Retrievs all plan dependencies in which the given plan features as a child

Parameters:
plan - - the child
Returns:
set of all parents to the given plan

removeDependenciesForPlan

void removeDependenciesForPlan(@NotNull
                               Plan plan)
Deletes any existing dependency featuring the given plan. Used when deleting a plan.

Parameters:
plan - to be removed

findAllDependencies

@NotNull
java.util.Collection<PlanDependency> findAllDependencies()
Returns:
all dependencies

getChildNonEditableDependencies

java.util.Collection<PlanDependency> getChildNonEditableDependencies(Plan plan)
Parameters:
plan - to find children of
Returns:
of dependencies in which the given plan features as a parent AND isEditable is false()

getParentNonEditableDependencies

java.util.Collection<PlanDependency> getParentNonEditableDependencies(Plan plan)
Parameters:
plan - to find parents of
Returns:
a list of dependencies in which the given plan features as a parent AND isEditable is false()


Copyright © 2010 Atlassian. All Rights Reserved.