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 interfaceMarker interface for all the state that is required to get aHelpUrlsinstance. -
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 interface com.google.common.base.Function
equals
-
Method Details
-
keyForCurrentUser
Return theHelpUrlsLoader.HelpUrlsLoaderKeyassociated with the calling user. It can safely be used as a key to cache the result of aHelpUrlslookup.- Returns:
- the loader key associated with the calling user.
-
keyForApplication
@Nonnull HelpUrlsLoader.HelpUrlsLoaderKey keyForApplication(@Nonnull com.atlassian.application.api.ApplicationKey applicationKey) Return theHelpUrlsLoader.HelpUrlsLoaderKeyassociated with the application key provided. It can safely be used as a key to cache the result of aHelpUrlslookup.- Returns:
- the loader key associated with the passed application.
- Since:
- 7.0
-
apply
Return theHelpUrlsassociated with the passedHelpUrlsLoader.HelpUrlsLoaderKey. The passedHelpUrlsLoaderKeymust have been returned from a previous call tokeyForCurrentUser()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> - Parameters:
input- theHelpUrlsLoaderKeyto query for. It must have been returned from akeyForCurrentUser()on this instance. UsingHelpUrlsLoaderKeyfrom other instances may result in runtime exceptions.- Returns:
- the
HelpUrlsassociated with the passed key.
-