com.atlassian.bamboo.ww2
Class NavigationContext

java.lang.Object
  extended by com.atlassian.bamboo.ww2.NavigationContext

public class NavigationContext
extends java.lang.Object


Field Summary
static java.lang.String BUILD_NUMBER_PLACEHOLDER
           
static java.lang.String PLAN_KEY_PLACEHOLDER
           
 
Constructor Summary
NavigationContext(java.lang.String currentUrl, DecoratedNavObject navObject, java.lang.String jobUrl, java.lang.String chainUrl)
           
 
Method Summary
 java.lang.String getChainUrl(DecoratedNavObject chain)
           
 java.lang.String getCurrentKey()
           
 DecoratedNavObject getCurrentObject()
           
 java.lang.String getCurrentUrl()
           
protected  java.lang.String getDefaultChainUrl(java.lang.String key)
           
protected  java.lang.String getDefaultJobUrl(java.lang.String key)
           
 java.lang.String getJobUrl(DecoratedNavObject job)
           
 DecoratedNavObject getNavObject()
           
protected  boolean isValid(java.lang.String possibleUrl, boolean chain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLAN_KEY_PLACEHOLDER

public static final java.lang.String PLAN_KEY_PLACEHOLDER
See Also:
Constant Field Values

BUILD_NUMBER_PLACEHOLDER

public static final java.lang.String BUILD_NUMBER_PLACEHOLDER
See Also:
Constant Field Values
Constructor Detail

NavigationContext

public NavigationContext(@NotNull
                         java.lang.String currentUrl,
                         @NotNull
                         DecoratedNavObject navObject,
                         @Nullable
                         java.lang.String jobUrl,
                         @Nullable
                         java.lang.String chainUrl)
Method Detail

getNavObject

public DecoratedNavObject getNavObject()

getCurrentObject

public DecoratedNavObject getCurrentObject()

getCurrentKey

public java.lang.String getCurrentKey()

getJobUrl

public java.lang.String getJobUrl(DecoratedNavObject job)

getChainUrl

public java.lang.String getChainUrl(DecoratedNavObject chain)

getCurrentUrl

@Nullable
public java.lang.String getCurrentUrl()

isValid

protected boolean isValid(@Nullable
                          java.lang.String possibleUrl,
                          boolean chain)

getDefaultChainUrl

protected java.lang.String getDefaultChainUrl(java.lang.String key)

getDefaultJobUrl

protected java.lang.String getDefaultJobUrl(java.lang.String key)


Copyright © 2011 Atlassian. All Rights Reserved.