|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.PlanDependencyManagerImpl
public class PlanDependencyManagerImpl
Constructor Summary | |
---|---|
PlanDependencyManagerImpl(PlanDependencyDao planDependencyDao,
PlanDao planDao,
ChainDao chainDao)
|
Method Summary | |
---|---|
void |
adjustChildDependencyList(java.lang.String dependencyKey,
Plan plan,
java.util.Set<java.lang.String> newChildPlanKeys,
boolean overwriteExisting)
Update the existing children dependencies of the given plan and dependency Type to mach the provided list of new children. |
void |
adjustParentDependencyList(java.lang.String dependencyKey,
Plan plan,
java.util.Set<java.lang.String> newParentPlanKeys,
boolean overwriteExisting)
Update the existing parent dependencies of the given plan and dependency Type to mach the provided list of new parents. |
java.util.Set<PlanDependency> |
getAllDependencies()
Retrieves all dependency relationships in the system regardless of the plan involved |
java.util.Set<java.lang.String> |
getChildBuildKeys(Plan plan)
|
java.util.Set<java.lang.String> |
getChildChainKeys(Plan plan)
Retrievs all chain that are children of the current plan |
java.util.Set<PlanDependency> |
getChildPlanDependencies(Plan plan)
Retrievs all plan dependencies in which the given plan features as a parent |
java.util.Set<java.lang.String> |
getChildPlanKeys(Plan plan)
Retrievs all plan that are children of the current plan |
java.util.Set<java.lang.String> |
getNotEditableChildKeys(Plan plan)
Retrieves a list of keys representing the children that are not editable of the given plan |
java.util.Set<java.lang.String> |
getNotEditableParentKeys(Plan plan)
Retrieves a list of keys representing the children that are not editable of the given plan |
java.util.Set<java.lang.String> |
getParentChainKeys(Plan plan)
Retrievs all chain that are children of the current plan |
java.util.Set<PlanDependency> |
getParentPlanDependencies(Plan plan)
Retrievs all plan dependencies in which the given plan features as a child |
java.util.Set<java.lang.String> |
getParentPlanKeys(Plan plan)
Retrievs all plans that are a parent of the current plan |
void |
removeAllDependenciesForPlan(Plan plan)
Deletes any existing dependency featuring the given plan. |
boolean |
savePlanDependency(PlanDependency dependency)
Save the given dependency. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlanDependencyManagerImpl(PlanDependencyDao planDependencyDao, PlanDao planDao, ChainDao chainDao)
Method Detail |
---|
@NotNull public java.util.Set<PlanDependency> getAllDependencies()
getAllDependencies
in interface PlanDependencyManager
@NotNull public java.util.Set<PlanDependency> getChildPlanDependencies(@NotNull Plan plan)
PlanDependencyManager
getChildPlanDependencies
in interface PlanDependencyManager
plan
- - the parent
@NotNull public java.util.Set<java.lang.String> getParentChainKeys(@NotNull Plan plan)
PlanDependencyManager
getParentChainKeys
in interface PlanDependencyManager
plan
- - the parent
@NotNull public java.util.Set<java.lang.String> getChildChainKeys(@NotNull Plan plan)
PlanDependencyManager
getChildChainKeys
in interface PlanDependencyManager
plan
- - the parent
@NotNull public java.util.Set<java.lang.String> getNotEditableChildKeys(@NotNull Plan plan)
PlanDependencyManager
getNotEditableChildKeys
in interface PlanDependencyManager
plan
- parent
@NotNull public java.util.Set<java.lang.String> getNotEditableParentKeys(@NotNull Plan plan)
PlanDependencyManager
getNotEditableParentKeys
in interface PlanDependencyManager
plan
- parent
@NotNull public java.util.Set<PlanDependency> getParentPlanDependencies(@NotNull Plan plan)
PlanDependencyManager
getParentPlanDependencies
in interface PlanDependencyManager
plan
- - the child
public void removeAllDependenciesForPlan(@NotNull Plan plan)
PlanDependencyManager
removeAllDependenciesForPlan
in interface PlanDependencyManager
plan
- to be removed@NotNull public java.util.Set<java.lang.String> getChildPlanKeys(@NotNull Plan plan)
PlanDependencyManager
getChildPlanKeys
in interface PlanDependencyManager
plan
- - the parent
@NotNull public java.util.Set<java.lang.String> getChildBuildKeys(@NotNull Plan plan)
@NotNull public java.util.Set<java.lang.String> getParentPlanKeys(@NotNull Plan plan)
PlanDependencyManager
getParentPlanKeys
in interface PlanDependencyManager
plan
- - the child
public void adjustChildDependencyList(@NotNull java.lang.String dependencyKey, @NotNull Plan plan, @NotNull java.util.Set<java.lang.String> newChildPlanKeys, boolean overwriteExisting)
PlanDependencyManager
adjustChildDependencyList
in interface PlanDependencyManager
dependencyKey
- of the dependencies being adjustedplan
- parentnewChildPlanKeys
- the new list of parents (as plan keys)overwriteExisting
- whether or not to overwrite any existing dependencies (of a different type) with one of the new typepublic void adjustParentDependencyList(@NotNull java.lang.String dependencyKey, @NotNull Plan plan, @NotNull java.util.Set<java.lang.String> newParentPlanKeys, boolean overwriteExisting)
PlanDependencyManager
adjustParentDependencyList
in interface PlanDependencyManager
dependencyKey
- of the dependencies being adjustedplan
- parentnewParentPlanKeys
- the new list of parents (as plan keys)overwriteExisting
- whether or not to overwrite any existing dependencies (of a different type) with one of the new typepublic boolean savePlanDependency(@Nullable PlanDependency dependency)
PlanDependencyManager
savePlanDependency
in interface PlanDependencyManager
dependency
- to save
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |