@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_DELIMITER
getPlanKey
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()
PlanIdentifier
PlanIdentifier.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 PlanIdentifier
getPlanType
in interface DecoratedNavObject
@Nullable public DecoratedNavObjectStatus getStatus()
getStatus
in interface DecoratedNavObject
@Nullable public String replaceKey(String url, DecoratedNavObject originalObject)
DecoratedNavObject
replaceKey
in interface DecoratedNavObject
url
- - to manipulateoriginalObject
- - the object the original url may have belonged to@Nullable public abstract DecoratedPlan getMaster()
DecoratedNavObject
getMaster
in interface DecoratedNavObject
public long getId()
PlanIdentifier
PlanIdentifier.getDatabaseId()
should be preferred.getId
in interface BambooIdProvider
getId
in interface PlanIdentifier
@NotNull public Optional<Long> getDatabaseId()
getDatabaseId
in interface PlanIdentifier
@NotNull public PlanKey getPlanKey()
PlanIdentifier
getPlanKey
in interface PlanIdentifier
getPlanKey
in interface PlanKeyProvider
@NotNull public String getName()
PlanIdentifier
getName
in interface PlanIdentifier
getName
in interface DescriptionProvider
getName
in interface NameProvider
@NotNull public ProjectIdentifier getProject()
PlanIdentifier
Project
getProject
in interface PlanIdentifier
Project
. Never null@NotNull public String getBuildName()
getBuildName
in interface PlanIdentifier
PlanIdentifier.getName()
public String getDescription()
getDescription
in interface DescriptionProvider
public long getMasterId()
getMasterId
in interface PlanIdentifier
@NotNull public Optional<Long> getMasterIdIfExists()
getMasterIdIfExists
in interface PlanIdentifier
public com.google.common.collect.ImmutableList<String> getLabelNames()
@NotNull public String getType()
getType
in interface DecoratedNavObject
public boolean isResult()
isResult
in interface DecoratedNavObject
public boolean isSuspendedFromBuilding()
PlanIdentifier
isSuspendedFromBuilding
in interface PlanIdentifier
public 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.