public interface PlanDependencyManager
Modifier and Type | Method and Description |
---|---|
void |
adjustChildDependencyList(String dependencyType,
Plan plan,
Set<PlanKey> newChildPlanKeys,
boolean overwriteExisting)
Update the existing children dependencies of the given plan and dependency Type to match the provided list of new children.
|
void |
adjustParentDependencyList(String dependencyType,
Plan plan,
Set<PlanKey> newParentPlanKeys,
boolean overwriteExisting)
Update the existing parent dependencies of the given plan and dependency Type to match the provided list of new parents.
|
Set<PlanDependency> |
getAllDependencies()
Retrieves all dependency relationships in the system regardless of the plans involved
|
Set<String> |
getChildChainKeys(PlanIdentifier plan)
Retrieves all chain that are children of the current plan
|
Set<PlanDependency> |
getChildPlanDependencies(PlanIdentifier plan)
Retrieves all plan dependencies in which the given plan features as a parent
|
Set<String> |
getChildPlanKeys(PlanIdentifier plan)
Retrievs all plan that are children of the current plan
|
Set<ImmutablePlan> |
getEffectiveChildPlans(ImmutablePlan chain) |
Set<ImmutablePlan> |
getEffectiveParentPlans(ImmutablePlan chain) |
Set<String> |
getNotEditableChildKeys(PlanIdentifier plan)
Retrieves a list of keys representing the children that are not editable of the given plan
|
Set<String> |
getNotEditableParentKeys(PlanIdentifier plan)
Retrieves a list of keys representing the children that are not editable of the given plan
|
Set<String> |
getParentChainKeys(PlanIdentifier plan)
Retrieves all chain that are children of the current plan
|
Set<PlanDependency> |
getParentPlanDependencies(PlanIdentifier plan)
Retrieves all plan dependencies in which the given plan features as a child
|
Set<String> |
getParentPlanKeys(PlanIdentifier plan)
Retrievs all plans that are a parent of the current plan
|
void |
removeAllDependenciesForPlan(PlanIdentifier plan)
Deletes any existing dependency featuring the given plan.
|
boolean |
savePlanDependency(PlanDependency dependency)
Save the given dependency.
|
ErrorCollection |
validateChildDependencyList(String dependencyType,
Plan plan,
Set<PlanKey> newChildPlanKeys,
boolean overwriteExisting)
Validate child dependency list
|
@NotNull Set<PlanDependency> getAllDependencies()
@NotNull Set<PlanDependency> getChildPlanDependencies(@NotNull PlanIdentifier plan)
plan
- - the parent@NotNull Set<PlanDependency> getParentPlanDependencies(@NotNull PlanIdentifier plan)
plan
- - the childvoid removeAllDependenciesForPlan(@NotNull PlanIdentifier plan)
plan
- to be removed@NotNull Set<String> getChildPlanKeys(@NotNull PlanIdentifier plan)
plan
- - the parent@NotNull Set<String> getParentPlanKeys(@NotNull PlanIdentifier plan)
plan
- - the child@NotNull Set<String> getChildChainKeys(@NotNull PlanIdentifier plan)
plan
- - the parent@NotNull Set<String> getParentChainKeys(@NotNull PlanIdentifier plan)
plan
- - the parentboolean savePlanDependency(@Nullable PlanDependency dependency)
dependency
- to save@NotNull Set<String> getNotEditableChildKeys(@NotNull PlanIdentifier plan)
plan
- parent@NotNull Set<String> getNotEditableParentKeys(@NotNull PlanIdentifier plan)
plan
- parent@NotNull ErrorCollection validateChildDependencyList(@NotNull String dependencyType, @NotNull Plan plan, @NotNull Set<PlanKey> newChildPlanKeys, boolean overwriteExisting)
void adjustChildDependencyList(@NotNull String dependencyType, @NotNull Plan plan, @NotNull Set<PlanKey> newChildPlanKeys, boolean overwriteExisting)
dependencyType
- 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 typevoid adjustParentDependencyList(@NotNull String dependencyType, @NotNull Plan plan, @NotNull Set<PlanKey> newParentPlanKeys, boolean overwriteExisting)
dependencyType
- 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 typeSet<ImmutablePlan> getEffectiveChildPlans(@NotNull ImmutablePlan chain)
Set<ImmutablePlan> getEffectiveParentPlans(@NotNull ImmutablePlan chain)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.