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, wait
forEach, spliterator
public MockHelpUrls merge(MockHelpUrls m)
@Nonnull public HelpUrl getUrl(@Nonnull String key)
HelpUrls
HelpUrl
associated with the passed key. The HelpUrls.getDefaultUrl()
URL is returned if the key
has no associated URL.@Nonnull public HelpUrl getDefaultUrl()
HelpUrls
HelpUrl
that can be used for generic JIRA help. It commonly points
at the JIRA help index/landing page.getDefaultUrl
in interface HelpUrls
HelpUrl
for this instance.@Nonnull public Set<String> getUrlKeys()
HelpUrls
HelpUrl
.getUrlKeys
in interface HelpUrls
HelpUrl
.@Nonnull public HelpUrl getUrlForApplication(@Nonnull com.atlassian.application.api.ApplicationKey applicationKey, @Nonnull String key)
HelpUrls
HelpUrl
specific to an application and key passed in. The HelpUrls.getDefaultUrl()
URL is returned if the key
has no associated URL.getUrlForApplication
in interface HelpUrls
applicationKey
- the application to find help urls forkey
- the key to search for.HelpUrl
public 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-2018 Atlassian. All Rights Reserved.