public class NavigationContext extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_NUMBER_PLACEHOLDER |
static String |
PLAN_KEY_PLACEHOLDER |
Constructor and Description |
---|
NavigationContext(String currentUrl,
DecoratedNavObject navObject,
String jobUrl,
String chainUrl) |
Modifier and Type | Method and Description |
---|---|
String |
getChainUrl(DecoratedNavObject chain) |
String |
getCurrentKey() |
DecoratedNavObject |
getCurrentObject() |
String |
getCurrentUrl() |
protected String |
getDefaultChainUrl(String key) |
protected String |
getDefaultJobUrl(String key) |
String |
getJobUrl(DecoratedNavObject job) |
DecoratedNavObject |
getNavObject() |
public static final String PLAN_KEY_PLACEHOLDER
public static final String BUILD_NUMBER_PLACEHOLDER
public NavigationContext(@NotNull String currentUrl, @NotNull DecoratedNavObject navObject, @Nullable String jobUrl, @Nullable String chainUrl)
public DecoratedNavObject getNavObject()
public DecoratedNavObject getCurrentObject()
public String getCurrentKey()
public String getJobUrl(DecoratedNavObject job)
public String getChainUrl(DecoratedNavObject chain)
@Nullable public String getCurrentUrl()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.