Package com.atlassian.bamboo.ww2.beans
Class DecoratedPlan.DecoratedBranch
- java.lang.Object
-
- com.atlassian.bamboo.ww2.beans.DecoratedPlan
-
- com.atlassian.bamboo.ww2.beans.DecoratedPlan.DecoratedBranch
-
- All Implemented Interfaces:
BambooIdProvider,PlanIdentifier,PlanKeyProvider,DescriptionProvider,NameProvider,DecoratedNavObject
- Enclosing class:
- DecoratedPlan
public static class DecoratedPlan.DecoratedBranch extends DecoratedPlan
Branches are top level branch plans. DecoratedBranches do not track stages or jobs themselves but inherit those of their master chain.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.beans.DecoratedPlan
DecoratedPlan.DecoratedBranch, DecoratedPlan.DecoratedPlanBranchGist
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
NAME_DELIMITER
-
Fields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider
getPlanKey
-
-
Constructor Summary
Constructors Constructor Description DecoratedBranch(@NotNull DecoratedNavObjectFactory decoratedNavObjectFactory, @NotNull ImmutableChainBranch branch, @NotNull DecoratedPlan master)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable StringgetBranchName()@NotNull DecoratedPlangetMaster()The master plan iff the plan is a branched plan and it has a master.@NotNull PlanBranchMetadatagetMetadata()@Nullable DecoratedPlangetParent()@Nullable PlanBranchWorkflowgetPlanBranchWorkflow()For plan branches, this value indicates which workflow led to creation of this particular plan branch.List<DeploymentProject>getRelatedDeploymentProjects()com.google.common.collect.ImmutableList<DecoratedStage>getStages()@Nullable DecoratedStagegetStageWithName(@NotNull String stageName)Retrieve the named stage.booleanisAwaitingSpecsExecution()booleanisDivergent()-
Methods inherited from class com.atlassian.bamboo.ww2.beans.DecoratedPlan
getBranches, getBranchPlanKey, getBuildKey, getBuildName, getDatabaseId, getDescription, getDisplayName, getId, getKey, getLabelNames, getLinkedJiraIssue, getMasterChainKey, getMasterId, getMasterIdIfExists, getMasterJobKey, getName, getNavGroups, getPlanKey, getPlanType, getProject, getStatus, getType, isRemoteJiraLinkRequired, isResult, isSuspendedFromBuilding, replaceKey, setLabels
-
-
-
-
Constructor Detail
-
DecoratedBranch
public DecoratedBranch(@NotNull @NotNull DecoratedNavObjectFactory decoratedNavObjectFactory, @NotNull @NotNull ImmutableChainBranch branch, @NotNull @NotNull DecoratedPlan master)
-
-
Method Detail
-
getMaster
@NotNull public @NotNull DecoratedPlan getMaster()
Description copied from interface:DecoratedNavObjectThe master plan iff the plan is a branched plan and it has a master.- Specified by:
getMasterin interfaceDecoratedNavObject- Specified by:
getMasterin classDecoratedPlan- Returns:
-
getRelatedDeploymentProjects
public List<DeploymentProject> getRelatedDeploymentProjects()
- Specified by:
getRelatedDeploymentProjectsin classDecoratedPlan
-
getParent
@Nullable public @Nullable DecoratedPlan getParent()
- Specified by:
getParentin interfaceDecoratedNavObject- Specified by:
getParentin classDecoratedPlan- Returns:
- the parent of this object (does not take into account groups)
-
getBranchName
@Nullable public @Nullable String getBranchName()
- Specified by:
getBranchNamein classDecoratedPlan
-
isDivergent
public boolean isDivergent()
-
isAwaitingSpecsExecution
public boolean isAwaitingSpecsExecution()
-
getPlanBranchWorkflow
@Nullable public @Nullable PlanBranchWorkflow getPlanBranchWorkflow()
For plan branches, this value indicates which workflow led to creation of this particular plan branch.- Specified by:
getPlanBranchWorkflowin classDecoratedPlan
-
getMetadata
@NotNull public @NotNull PlanBranchMetadata getMetadata()
-
getStageWithName
@Nullable public @Nullable DecoratedStage getStageWithName(@NotNull @NotNull String stageName)
Description copied from class:DecoratedPlanRetrieve the named stage. If the stage is not found it indicates that the stage has been deleted or renamed but the result remains.- Specified by:
getStageWithNamein classDecoratedPlan
-
getStages
public com.google.common.collect.ImmutableList<DecoratedStage> getStages()
- Overrides:
getStagesin classDecoratedPlan
-
-