Package com.atlassian.bamboo.ww2
Class NavigationContext
- java.lang.Object
-
- com.atlassian.bamboo.ww2.NavigationContext
-
public class NavigationContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
BUILD_NUMBER_PLACEHOLDER
static String
PLAN_KEY_PLACEHOLDER
-
Constructor Summary
Constructors Constructor Description NavigationContext(@NotNull String currentUrl, @NotNull DecoratedNavObject navObject, @Nullable String jobUrl, @Nullable String chainUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChainUrl(DecoratedNavObject chain)
String
getCurrentKey()
DecoratedNavObject
getCurrentObject()
@Nullable String
getCurrentUrl()
protected String
getDefaultChainUrl(String key)
protected String
getDefaultJobUrl(String key)
String
getJobUrl(DecoratedNavObject job)
DecoratedNavObject
getNavObject()
-
-
-
Field Detail
-
PLAN_KEY_PLACEHOLDER
public static final String PLAN_KEY_PLACEHOLDER
- See Also:
- Constant Field Values
-
BUILD_NUMBER_PLACEHOLDER
public static final String BUILD_NUMBER_PLACEHOLDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NavigationContext
public NavigationContext(@NotNull @NotNull String currentUrl, @NotNull @NotNull DecoratedNavObject navObject, @Nullable @Nullable String jobUrl, @Nullable @Nullable String chainUrl)
-
-
Method Detail
-
getNavObject
public DecoratedNavObject getNavObject()
-
getCurrentObject
public DecoratedNavObject getCurrentObject()
-
getCurrentKey
public String getCurrentKey()
-
getJobUrl
public String getJobUrl(DecoratedNavObject job)
-
getChainUrl
public String getChainUrl(DecoratedNavObject chain)
-
getCurrentUrl
@Nullable public @Nullable String getCurrentUrl()
-
-