Package com.atlassian.jira.help
Class DefaultHelpUrlsLoader
java.lang.Object
com.atlassian.jira.help.DefaultHelpUrlsLoader
- All Implemented Interfaces:
HelpUrlsLoader,com.google.common.base.Function<HelpUrlsLoader.HelpUrlsLoaderKey,,HelpUrls> Function<HelpUrlsLoader.HelpUrlsLoaderKey,HelpUrls>
- Since:
- v6.2.4
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.help.HelpUrlsLoader
HelpUrlsLoader.HelpUrlsLoaderKey -
Constructor Summary
ConstructorsConstructorDescriptionDefaultHelpUrlsLoader(HelpResourceBundleLoader helpResourceBundleLoader, JiraAuthenticationContext ctx, LocalHelpUrls localHelpUrls, I18nHelper.BeanFactory i18n, HelpUrlsParserBuilderFactory parserBuilderFactory, HelpUrlsApplicationKeyProvider helpUrlsApplicationKeyProvider, ApplicationHelpSpaceProvider applicationHelpSpaceProvider) -
Method Summary
Modifier and TypeMethodDescriptionReturn theHelpUrlsassociated with the passedHelpUrlsLoader.HelpUrlsLoaderKey.keyForApplication(com.atlassian.application.api.ApplicationKey applicationKey) Return theHelpUrlsLoader.HelpUrlsLoaderKeyassociated with the application key provided.Return theHelpUrlsLoader.HelpUrlsLoaderKeyassociated with the calling user.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Constructor Details
-
DefaultHelpUrlsLoader
public DefaultHelpUrlsLoader(HelpResourceBundleLoader helpResourceBundleLoader, JiraAuthenticationContext ctx, LocalHelpUrls localHelpUrls, I18nHelper.BeanFactory i18n, HelpUrlsParserBuilderFactory parserBuilderFactory, HelpUrlsApplicationKeyProvider helpUrlsApplicationKeyProvider, ApplicationHelpSpaceProvider applicationHelpSpaceProvider)
-
-
Method Details
-
keyForCurrentUser
Description copied from interface:HelpUrlsLoaderReturn theHelpUrlsLoader.HelpUrlsLoaderKeyassociated with the calling user. It can safely be used as a key to cache the result of aHelpUrlslookup.- Specified by:
keyForCurrentUserin interfaceHelpUrlsLoader- Returns:
- the loader key associated with the calling user.
-
keyForApplication
@Nonnull public HelpUrlsLoader.HelpUrlsLoaderKey keyForApplication(@Nonnull com.atlassian.application.api.ApplicationKey applicationKey) Description copied from interface:HelpUrlsLoaderReturn theHelpUrlsLoader.HelpUrlsLoaderKeyassociated with the application key provided. It can safely be used as a key to cache the result of aHelpUrlslookup.- Specified by:
keyForApplicationin interfaceHelpUrlsLoader- Returns:
- the loader key associated with the passed application.
-
apply
Description copied from interface:HelpUrlsLoaderReturn theHelpUrlsassociated with the passedHelpUrlsLoader.HelpUrlsLoaderKey. The passedHelpUrlsLoaderKeymust have been returned from a previous call toHelpUrlsLoader.keyForCurrentUser()on this instance. It is not safe to useHelpUrlsLoaderKeyacross instances ofHelpUrlsLoader.- Specified by:
applyin interfacecom.google.common.base.Function<HelpUrlsLoader.HelpUrlsLoaderKey,HelpUrls> - Specified by:
applyin interfaceFunction<HelpUrlsLoader.HelpUrlsLoaderKey,HelpUrls> - Specified by:
applyin interfaceHelpUrlsLoader- Parameters:
input- theHelpUrlsLoaderKeyto query for. It must have been returned from aHelpUrlsLoader.keyForCurrentUser()on this instance. UsingHelpUrlsLoaderKeyfrom other instances may result in runtime exceptions.- Returns:
- the
HelpUrlsassociated with the passed key.
-