public class DefaultHelpUrlsLoader extends Object implements HelpUrlsLoader
HelpUrlsLoader.HelpUrlsLoaderKey| Constructor and Description |
|---|
DefaultHelpUrlsLoader(HelpResourceBundleLoader helpResourceBundleLoader,
JiraAuthenticationContext ctx,
LocalHelpUrls localHelpUrls,
I18nHelper.BeanFactory i18n,
HelpUrlsParserBuilderFactory parserBuilderFactory,
HelpUrlsApplicationKeyProvider helpUrlsApplicationKeyProvider,
ApplicationHelpSpaceProvider applicationHelpSpaceProvider) |
| Modifier and Type | Method and Description |
|---|---|
HelpUrls |
apply(HelpUrlsLoader.HelpUrlsLoaderKey input)
Return the
HelpUrls associated with the passed HelpUrlsLoader.HelpUrlsLoaderKey. |
HelpUrlsLoader.HelpUrlsLoaderKey |
keyForApplication(com.atlassian.application.api.ApplicationKey applicationKey)
Return the
HelpUrlsLoader.HelpUrlsLoaderKey associated with the application key provided. |
HelpUrlsLoader.HelpUrlsLoaderKey |
keyForCurrentUser()
Return the
HelpUrlsLoader.HelpUrlsLoaderKey associated with the calling user. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, compose, identitypublic DefaultHelpUrlsLoader(HelpResourceBundleLoader helpResourceBundleLoader, JiraAuthenticationContext ctx, LocalHelpUrls localHelpUrls, I18nHelper.BeanFactory i18n, HelpUrlsParserBuilderFactory parserBuilderFactory, HelpUrlsApplicationKeyProvider helpUrlsApplicationKeyProvider, ApplicationHelpSpaceProvider applicationHelpSpaceProvider)
@Nonnull public HelpUrlsLoader.HelpUrlsLoaderKey keyForCurrentUser()
HelpUrlsLoaderHelpUrlsLoader.HelpUrlsLoaderKey associated with the calling user. It can safely be used as
a key to cache the result of a HelpUrls lookup.keyForCurrentUser in interface HelpUrlsLoader@Nonnull public HelpUrlsLoader.HelpUrlsLoaderKey keyForApplication(@Nonnull com.atlassian.application.api.ApplicationKey applicationKey)
HelpUrlsLoaderHelpUrlsLoader.HelpUrlsLoaderKey associated with the application key provided. It can safely
be used as a key to cache the result of a HelpUrls lookup.keyForApplication in interface HelpUrlsLoaderpublic HelpUrls apply(HelpUrlsLoader.HelpUrlsLoaderKey input)
HelpUrlsLoaderHelpUrls associated with the passed HelpUrlsLoader.HelpUrlsLoaderKey. The
passed HelpUrlsLoaderKey must have been returned from a previous call to HelpUrlsLoader.keyForCurrentUser()
on this instance. It is not safe to use HelpUrlsLoaderKey across instances of HelpUrlsLoader.apply in interface HelpUrlsLoaderapply in interface java.util.function.Function<HelpUrlsLoader.HelpUrlsLoaderKey,HelpUrls>input - the HelpUrlsLoaderKey to query for. It must have been returned from a HelpUrlsLoader.keyForCurrentUser()
on this instance. Using HelpUrlsLoaderKey from other instances may result in runtime exceptions.HelpUrls associated with the passed key.Copyright © 2002-2020 Atlassian. All Rights Reserved.