Constructor and Description |
---|
CachingHelpUrls(HelpUrlsLoader loader,
ResourceBundleCacheCleaner resourceBundleCacheCleaner) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache(ClearCacheEvent cacheEvent) |
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() |
void |
jiraStarted(JiraStartedEvent event) |
void |
licenseChanged(LicenseChangedEvent event) |
void |
pluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent event) |
void |
pluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent event) |
void |
pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event) |
void |
pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event) |
void |
pluginRefreshed(com.atlassian.plugin.event.events.PluginRefreshedEvent event) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public CachingHelpUrls(HelpUrlsLoader loader, ResourceBundleCacheCleaner resourceBundleCacheCleaner)
@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
@EventListener public void clearCache(ClearCacheEvent cacheEvent)
@EventListener public void pluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent event)
@EventListener public void pluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent event)
@EventListener public void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
@EventListener public void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
@EventListener public void pluginRefreshed(com.atlassian.plugin.event.events.PluginRefreshedEvent event)
@EventListener public void licenseChanged(LicenseChangedEvent event)
@EventListener public void jiraStarted(JiraStartedEvent event)
Copyright © 2002-2015 Atlassian. All Rights Reserved.