Package com.atlassian.bamboo.ww2.beans
Class DecoratedResult
- java.lang.Object
-
- com.atlassian.bamboo.ww2.beans.DecoratedResult
-
- All Implemented Interfaces:
DecoratedNavObject
public abstract class DecoratedResult extends Object implements DecoratedNavObject
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static @Nullable DecoratedResult
decorateChainResult(@NotNull PlanExecutionManager planExecutionManager, @NotNull ChainResultsSummary resultsSummary, @NotNull DecoratedPlan decoratedPlan, @NotNull DecoratedNavObjectFactory decoratedNavObjectFactory)
Decorate aChainResultsSummary
.@Nullable com.google.common.collect.ImmutableList<DecoratedPlan.DecoratedPlanBranchGist>
getBranches()
@Nullable String
getBranchName()
Date
getBuildDate()
int
getBuildNumber()
String
getDescription()
@NotNull String
getDisplayName()
String
getFullName()
@NotNull String
getKey()
@Nullable String
getLinkedJiraIssue()
@Nullable PlanIdentifier
getMaster()
The master plan iff the plan is a branched plan and it has a master.@NotNull com.google.common.collect.ImmutableList<? extends DecoratedNavGroupObject>
getNavGroups()
abstract @Nullable DecoratedResult
getParent()
String
getPlanKey()
PlanResultKey
getPlanResultKey()
@NotNull PlanType
getPlanType()
String
getProjectKey()
String
getProjectName()
abstract com.google.common.collect.ImmutableList<DecoratedStageResult>
getStageResults()
@Nullable DecoratedNavObjectStatus
getStatus()
@NotNull String
getType()
boolean
isRemoteJiraLinkRequired()
boolean
isResult()
boolean
isSuspendedFromBuilding()
@Nullable 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
-
-
-
Method Detail
-
decorateChainResult
@Nullable public static @Nullable DecoratedResult decorateChainResult(@NotNull @NotNull PlanExecutionManager planExecutionManager, @NotNull @NotNull ChainResultsSummary resultsSummary, @NotNull @NotNull DecoratedPlan decoratedPlan, @NotNull @NotNull DecoratedNavObjectFactory decoratedNavObjectFactory)
Decorate aChainResultsSummary
.- Parameters:
resultsSummary
- summary to decoratedecoratedPlan
- decorated plan the results summary is a result for. Must have the same key.decoratedNavObjectFactory
-- Returns:
- a contextual decorator around resultsSummary or null if the job is an orphan.
- Throws:
IllegalArgumentException
- if theresultsSummary
anddecoratedPlan
do not match.
-
getKey
@NotNull public @NotNull String getKey()
- Specified by:
getKey
in interfaceDecoratedNavObject
- Returns:
- full key of the object
-
getDisplayName
@NotNull public @NotNull String getDisplayName()
- Specified by:
getDisplayName
in interfaceDecoratedNavObject
- Returns:
- display name of this object
-
getNavGroups
@NotNull public @NotNull com.google.common.collect.ImmutableList<? extends DecoratedNavGroupObject> getNavGroups()
- Specified by:
getNavGroups
in interfaceDecoratedNavObject
- Returns:
- any children groups of this object
-
getParent
@Nullable public abstract @Nullable DecoratedResult getParent()
- Specified by:
getParent
in interfaceDecoratedNavObject
- Returns:
- the parent of this object (does not take into account groups)
-
getPlanType
@NotNull public @NotNull PlanType getPlanType()
- Specified by:
getPlanType
in interfaceDecoratedNavObject
- Returns:
- plantype associated with this object.
-
getMaster
@Nullable public @Nullable PlanIdentifier getMaster()
Description copied from interface:DecoratedNavObject
The master plan iff the plan is a branched plan and it has a master.- Specified by:
getMaster
in interfaceDecoratedNavObject
- Returns:
-
getDescription
public String getDescription()
-
getType
@NotNull public @NotNull String getType()
- Specified by:
getType
in interfaceDecoratedNavObject
- Returns:
- plantype associated with this object.
-
getStatus
@Nullable public @Nullable DecoratedNavObjectStatus getStatus()
- Specified by:
getStatus
in interfaceDecoratedNavObject
- Returns:
- provide the status of this object if applicable
-
isResult
public boolean isResult()
- Specified by:
isResult
in interfaceDecoratedNavObject
- Returns:
- true if the nav object represents a result otherwise false
-
getBranches
@Nullable public @Nullable com.google.common.collect.ImmutableList<DecoratedPlan.DecoratedPlanBranchGist> getBranches()
-
replaceKey
@Nullable public @Nullable String replaceKey(String url, DecoratedNavObject originalObject)
Description copied from interface:DecoratedNavObject
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- Specified by:
replaceKey
in interfaceDecoratedNavObject
- Parameters:
url
- - to manipulateoriginalObject
- - the object the original url may have belonged to- Returns:
- the new url referencing this object
-
getPlanKey
public String getPlanKey()
-
getBuildNumber
public int getBuildNumber()
-
getPlanResultKey
public PlanResultKey getPlanResultKey()
-
getProjectKey
public String getProjectKey()
-
getProjectName
public String getProjectName()
-
getFullName
public String getFullName()
-
getStageResults
public abstract com.google.common.collect.ImmutableList<DecoratedStageResult> getStageResults()
-
getBuildDate
public Date getBuildDate()
-
getBranchName
@Nullable public @Nullable String getBranchName()
-
getLinkedJiraIssue
@Nullable public @Nullable String getLinkedJiraIssue()
-
isRemoteJiraLinkRequired
public boolean isRemoteJiraLinkRequired()
-
isSuspendedFromBuilding
public boolean isSuspendedFromBuilding()
-
-