@Immutable public abstract class DecoratedPlan extends Object implements DecoratedNavObject, PlanIdentifier
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DecoratedPlan.DecoratedBranch
Branches are top level branch plans.
|
static class |
DecoratedPlan.DecoratedPlanBranchGist |
getPlanKeyFunction, NAME_DELIMITERgetPlanKey| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<DecoratedPlan.DecoratedPlanBranchGist> |
getBranches() |
abstract String |
getBranchName() |
String |
getBranchPlanKey()
Return the the branch plan key.
|
String |
getBuildKey()
This objects specific portion of the key.
|
String |
getBuildName() |
Optional<Long> |
getDatabaseId() |
String |
getDescription() |
String |
getDisplayName() |
long |
getId()
Returns database id of the plan.
|
String |
getKey() |
com.google.common.collect.ImmutableList<String> |
getLabelNames() |
String |
getLinkedJiraIssue() |
abstract DecoratedPlan |
getMaster()
The master plan iff the plan is a branched plan and it has a master.
|
String |
getMasterChainKey()
Return the main chain key for this plan.
|
long |
getMasterId() |
Optional<Long> |
getMasterIdIfExists() |
String |
getMasterJobKey()
Return the job key of this plan.
|
String |
getName()
Returns the full name for the build in the form of "project name - build name" e.g.
|
com.google.common.collect.ImmutableList<? extends DecoratedNavGroupObject> |
getNavGroups() |
abstract DecoratedPlan |
getParent() |
abstract PlanBranchWorkflow |
getPlanBranchWorkflow() |
PlanKey |
getPlanKey()
|
PlanType |
getPlanType() |
ProjectIdentifier |
getProject()
Returns the parent
Project |
abstract List<DeploymentProject> |
getRelatedDeploymentProjects() |
com.google.common.collect.ImmutableList<DecoratedStage> |
getStages() |
abstract DecoratedStage |
getStageWithName(String stageName)
Retrieve the named stage.
|
DecoratedNavObjectStatus |
getStatus() |
String |
getType() |
boolean |
isRemoteJiraLinkRequired() |
boolean |
isResult() |
boolean |
isSuspendedFromBuilding()
Checks if the build has been enabled / disabled.
|
String |
replaceKey(String url,
DecoratedNavObject originalObject)
Given an existing url (may be directly from the originalObject or may be with a static ${planKey} reference) generate
the new url for this object
|
void |
setLabels(com.google.common.collect.ImmutableList<String> labels) |
@NotNull public String getKey()
getKey in interface DecoratedNavObject@NotNull public String getBuildKey()
PlanIdentifierPlanIdentifier.getPlanKey().getBuildKey in interface PlanIdentifier@NotNull public String getDisplayName()
getDisplayName in interface DecoratedNavObject@NotNull public com.google.common.collect.ImmutableList<? extends DecoratedNavGroupObject> getNavGroups()
getNavGroups in interface DecoratedNavObject@Nullable public abstract DecoratedPlan getParent()
getParent in interface DecoratedNavObject@NotNull public PlanType getPlanType()
getPlanType in interface PlanIdentifiergetPlanType in interface DecoratedNavObject@Nullable public DecoratedNavObjectStatus getStatus()
getStatus in interface DecoratedNavObject@Nullable public String replaceKey(String url, DecoratedNavObject originalObject)
DecoratedNavObjectreplaceKey in interface DecoratedNavObjecturl - - to manipulateoriginalObject - - the object the original url may have belonged to@Nullable public abstract DecoratedPlan getMaster()
DecoratedNavObjectgetMaster in interface DecoratedNavObjectpublic long getId()
PlanIdentifierPlanIdentifier.getDatabaseId() should be preferred.getId in interface BambooIdProvidergetId in interface PlanIdentifier@NotNull public Optional<Long> getDatabaseId()
getDatabaseId in interface PlanIdentifier@NotNull public PlanKey getPlanKey()
PlanIdentifiergetPlanKey in interface PlanIdentifiergetPlanKey in interface PlanKeyProvider@NotNull public String getName()
PlanIdentifiergetName in interface PlanIdentifiergetName in interface DescriptionProvidergetName in interface NameProvider@NotNull public ProjectIdentifier getProject()
PlanIdentifierProjectgetProject in interface PlanIdentifierProject. Never null@NotNull public String getBuildName()
getBuildName in interface PlanIdentifierPlanIdentifier.getName()public String getDescription()
getDescription in interface DescriptionProviderpublic long getMasterId()
getMasterId in interface PlanIdentifier@NotNull public Optional<Long> getMasterIdIfExists()
getMasterIdIfExists in interface PlanIdentifierpublic com.google.common.collect.ImmutableList<String> getLabelNames()
@NotNull public String getType()
getType in interface DecoratedNavObjectpublic boolean isResult()
isResult in interface DecoratedNavObjectpublic boolean isSuspendedFromBuilding()
PlanIdentifierisSuspendedFromBuilding in interface PlanIdentifierpublic com.google.common.collect.ImmutableList<DecoratedStage> getStages()
public com.google.common.collect.ImmutableList<DecoratedPlan.DecoratedPlanBranchGist> getBranches()
public void setLabels(com.google.common.collect.ImmutableList<String> labels)
@Nullable public abstract String getBranchName()
@Nullable public abstract PlanBranchWorkflow getPlanBranchWorkflow()
@Nullable public String getLinkedJiraIssue()
public boolean isRemoteJiraLinkRequired()
@NotNull public String getMasterChainKey()
@Nullable public String getMasterJobKey()
@Nullable public String getBranchPlanKey()
public abstract List<DeploymentProject> getRelatedDeploymentProjects()
@Nullable public abstract DecoratedStage getStageWithName(@NotNull String stageName)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.