Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Collection<PlanDependency>
findAllDependencies()
Collection<PlanDependency>
getChildNonEditableDependencies(PlanIdentifier plan)
@NotNull Collection<PlanDependency>
getChildPlanDependencies(@NotNull PlanIdentifier plan)
Retrievs all plan dependencies in which the given plan features as a parentCollection<PlanDependency>
getParentNonEditableDependencies(PlanIdentifier plan)
@NotNull Collection<PlanDependency>
getParentPlanDependencies(@NotNull PlanIdentifier plan)
Retrievs all plan dependencies in which the given plan features as a childvoid
removeDependenciesForPlan(@NotNull PlanIdentifier plan)
Deletes any existing dependency featuring the given plan.-
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
-
-
-
-
Method Detail
-
getChildPlanDependencies
@NotNull @NotNull Collection<PlanDependency> getChildPlanDependencies(@NotNull @NotNull PlanIdentifier 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 @NotNull Collection<PlanDependency> getParentPlanDependencies(@NotNull @NotNull PlanIdentifier 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 @NotNull PlanIdentifier plan)
Deletes any existing dependency featuring the given plan. Used when deleting a plan.- Parameters:
plan
- to be removed
-
findAllDependencies
@NotNull @NotNull Collection<PlanDependency> findAllDependencies()
- Returns:
- all dependencies
-
getChildNonEditableDependencies
Collection<PlanDependency> getChildNonEditableDependencies(PlanIdentifier plan)
- Parameters:
plan
- to find children of- Returns:
- of dependencies in which the given plan features as a parent AND isEditable is false()
-
getParentNonEditableDependencies
Collection<PlanDependency> getParentNonEditableDependencies(PlanIdentifier 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()
-
-