Package com.atlassian.jira.help
Interface HelpUrls
- All Known Implementing Classes:
CachingHelpUrls,MockHelpUrls
A mapping of keys to
HelpUrls.- Since:
- v6.2.4
-
Method Summary
Modifier and TypeMethodDescriptionReturns aHelpUrlthat can be used for generic Jira help.Returns aHelpUrlassociated with the passed key.getUrlForApplication(com.atlassian.application.api.ApplicationKey applicationKey, String key) Adds the ability to retrieveHelpUrlspecific to an application and key passed in.Return all the keys that have an associatedHelpUrl.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getUrl
Returns aHelpUrlassociated with the passed key. ThegetDefaultUrl()URL is returned if thekeyhas no associated URL.- Parameters:
key- the key to search for.- Returns:
- the
HelpUrl
-
getDefaultUrl
Returns aHelpUrlthat can be used for generic Jira help. It commonly points at the Jira help index/landing page.- Returns:
- the default
HelpUrlfor this instance.
-
getUrlKeys
Return all the keys that have an associatedHelpUrl.- Returns:
- all the keys that have an associated
HelpUrl.
-
getUrlForApplication
@Nonnull HelpUrl getUrlForApplication(@Nonnull com.atlassian.application.api.ApplicationKey applicationKey, @Nonnull String key) Adds the ability to retrieveHelpUrlspecific to an application and key passed in. ThegetDefaultUrl()URL is returned if thekeyhas no associated URL.- Parameters:
applicationKey- the application to find help urls forkey- the key to search for.- Returns:
- the
HelpUrl - Since:
- 7.0
-