com.atlassian.bamboo.ww2.beans
Class DecoratedResult

java.lang.Object
  extended by com.atlassian.bamboo.ww2.beans.DecoratedResult
All Implemented Interfaces:
DecoratedNavObject

public class DecoratedResult
extends java.lang.Object
implements DecoratedNavObject


Method Summary
static DecoratedResult decorateResult(ResultsSummary resultsSummary, DecoratedNavObjectFactory decoratedNavObjectFactory)
           
 com.google.common.collect.ImmutableList<DecoratedPlan> getBranches()
           
 java.util.Date getBuildDate()
           
 int getBuildNumber()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.lang.String getFullName()
           
 java.lang.String getKey()
           
 PlanIdentifier getMaster()
          The master plan iff the plan is a branched plan and it has a master.
 com.google.common.collect.ImmutableList<? extends DecoratedNavGroupObject> getNavGroups()
           
 DecoratedNavObject getParent()
           
 java.lang.String getPlanKey()
           
 PlanResultKey getPlanResultKey()
           
 PlanType getPlanType()
           
 java.lang.String getProjectKey()
           
 java.lang.String getProjectName()
           
 com.google.common.collect.ImmutableList<DecoratedStageResult> getStageResults()
           
 DecoratedNavObjectStatus getStatus()
           
 java.lang.String getType()
           
 boolean isResult()
           
 java.lang.String replaceKey(java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decorateResult

@Nullable
public static DecoratedResult decorateResult(@NotNull
                                                      ResultsSummary resultsSummary,
                                                      DecoratedNavObjectFactory decoratedNavObjectFactory)

getKey

@NotNull
public java.lang.String getKey()
Specified by:
getKey in interface DecoratedNavObject
Returns:
full key of the object

getDisplayName

@NotNull
public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface DecoratedNavObject
Returns:
display name of this object

getNavGroups

@NotNull
public com.google.common.collect.ImmutableList<? extends DecoratedNavGroupObject> getNavGroups()
Specified by:
getNavGroups in interface DecoratedNavObject
Returns:
any children groups of this object

getParent

@Nullable
public DecoratedNavObject getParent()
Specified by:
getParent in interface DecoratedNavObject
Returns:
the parent of this object (does not take into account groups)

getPlanType

@NotNull
public PlanType getPlanType()
Specified by:
getPlanType in interface DecoratedNavObject
Returns:
plantype associated with this object.

getMaster

@Nullable
public 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 interface DecoratedNavObject
Returns:

getDescription

public java.lang.String getDescription()

getType

@NotNull
public java.lang.String getType()
Specified by:
getType in interface DecoratedNavObject
Returns:
plantype associated with this object.

getStatus

@Nullable
public DecoratedNavObjectStatus getStatus()
Specified by:
getStatus in interface DecoratedNavObject
Returns:
provide the status of this object if applicable

isResult

public boolean isResult()
Specified by:
isResult in interface DecoratedNavObject
Returns:
true if the nav object represents a result otherwise false

getBranches

@Nullable
public com.google.common.collect.ImmutableList<DecoratedPlan> getBranches()

replaceKey

@Nullable
public java.lang.String replaceKey(java.lang.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 interface DecoratedNavObject
Parameters:
url - - to manipulate
originalObject - - the object the original url may have belonged to
Returns:
the new url referencing this object

getPlanKey

public java.lang.String getPlanKey()

getBuildNumber

public int getBuildNumber()

getPlanResultKey

public PlanResultKey getPlanResultKey()

getProjectKey

public java.lang.String getProjectKey()

getProjectName

public java.lang.String getProjectName()

getFullName

public java.lang.String getFullName()

getStageResults

public com.google.common.collect.ImmutableList<DecoratedStageResult> getStageResults()

getBuildDate

public java.util.Date getBuildDate()


Copyright © 2012 Atlassian. All Rights Reserved.