| Constructor and Description |
|---|
MockHelpUrls() |
MockHelpUrls(HelpUrl defaultUrl,
HelpUrl... urls) |
MockHelpUrls(HelpUrl defaultUrl,
Iterable<? extends HelpUrl> urls) |
| Modifier and Type | Method and Description |
|---|---|
MockHelpUrls |
addUrl(HelpUrl url) |
MockHelpUrl |
createDefault() |
MockHelpUrl |
createDefault(String key) |
MockHelpUrl |
createSimpleUrl(String key) |
MockHelpUrl |
createUrl(String key) |
MockHelpUrls |
defaultUrl(HelpUrl url) |
HelpUrl |
getDefaultUrl()
Returns a
HelpUrl that can be used for generic JIRA help. |
HelpUrl |
getUrl(String key)
Returns a
HelpUrl associated with the passed key. |
HelpUrl |
getUrlForApplication(com.atlassian.application.api.ApplicationKey applicationKey,
String key)
Adds the ability to retrieve
HelpUrl specific to an application and key passed in. |
Set<String> |
getUrlKeys()
Return all the keys that have an associated
HelpUrl. |
Iterator<HelpUrl> |
iterator() |
MockHelpUrls |
merge(MockHelpUrls m) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic MockHelpUrls merge(MockHelpUrls m)
@Nonnull public HelpUrl getUrl(@Nonnull String key)
HelpUrlsHelpUrl associated with the passed key. The HelpUrls.getDefaultUrl()
URL is returned if the key has no associated URL.@Nonnull public HelpUrl getDefaultUrl()
HelpUrlsHelpUrl that can be used for generic JIRA help. It commonly points
at the JIRA help index/landing page.getDefaultUrl in interface HelpUrlsHelpUrl for this instance.@Nonnull public Set<String> getUrlKeys()
HelpUrlsHelpUrl.getUrlKeys in interface HelpUrlsHelpUrl.@Nonnull public HelpUrl getUrlForApplication(@Nonnull com.atlassian.application.api.ApplicationKey applicationKey, @Nonnull String key)
HelpUrlsHelpUrl specific to an application and key passed in. The HelpUrls.getDefaultUrl() URL is returned if the key has no associated URL.getUrlForApplication in interface HelpUrlsapplicationKey - the application to find help urls forkey - the key to search for.HelpUrlpublic MockHelpUrls defaultUrl(HelpUrl url)
public MockHelpUrl createDefault()
public MockHelpUrl createDefault(String key)
public MockHelpUrls addUrl(HelpUrl url)
public MockHelpUrl createSimpleUrl(String key)
public MockHelpUrl createUrl(String key)
Copyright © 2002-2017 Atlassian. All Rights Reserved.