Package com.atlassian.jira.help
Interface HelpUrlsLoader
- All Superinterfaces:
com.google.common.base.Function<HelpUrlsLoader.HelpUrlsLoaderKey,
,HelpUrls> Function<HelpUrlsLoader.HelpUrlsLoaderKey,
HelpUrls>
- All Known Implementing Classes:
DefaultHelpUrlsLoader
,MockHelpUrlsLoader
public interface HelpUrlsLoader
extends com.google.common.base.Function<HelpUrlsLoader.HelpUrlsLoaderKey,HelpUrls>
Searches and loads the
HelpUrls
using a HelpUrlsLoader.HelpUrlsLoaderKey
.- Since:
- v6.2.4
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Marker interface for all the state that is required to get aHelpUrls
instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn theHelpUrls
associated with the passedHelpUrlsLoader.HelpUrlsLoaderKey
.keyForApplication
(com.atlassian.application.api.ApplicationKey applicationKey) Return theHelpUrlsLoader.HelpUrlsLoaderKey
associated with the application key provided.Return theHelpUrlsLoader.HelpUrlsLoaderKey
associated with the calling user.Methods inherited from interface com.google.common.base.Function
equals
-
Method Details
-
keyForCurrentUser
Return theHelpUrlsLoader.HelpUrlsLoaderKey
associated with the calling user. It can safely be used as a key to cache the result of aHelpUrls
lookup.- Returns:
- the loader key associated with the calling user.
-
keyForApplication
@Nonnull HelpUrlsLoader.HelpUrlsLoaderKey keyForApplication(@Nonnull com.atlassian.application.api.ApplicationKey applicationKey) Return theHelpUrlsLoader.HelpUrlsLoaderKey
associated with the application key provided. It can safely be used as a key to cache the result of aHelpUrls
lookup.- Returns:
- the loader key associated with the passed application.
- Since:
- 7.0
-
apply
Return theHelpUrls
associated with the passedHelpUrlsLoader.HelpUrlsLoaderKey
. The passedHelpUrlsLoaderKey
must have been returned from a previous call tokeyForCurrentUser()
on this instance. It is not safe to useHelpUrlsLoaderKey
across instances ofHelpUrlsLoader
.- Specified by:
apply
in interfacecom.google.common.base.Function<HelpUrlsLoader.HelpUrlsLoaderKey,
HelpUrls> - Specified by:
apply
in interfaceFunction<HelpUrlsLoader.HelpUrlsLoaderKey,
HelpUrls> - Parameters:
input
- theHelpUrlsLoaderKey
to query for. It must have been returned from akeyForCurrentUser()
on this instance. UsingHelpUrlsLoaderKey
from other instances may result in runtime exceptions.- Returns:
- the
HelpUrls
associated with the passed key.
-