public class SearchMappersThreadLocal extends Object
Constructor and Description |
---|
SearchMappersThreadLocal() |
Modifier and Type | Method and Description |
---|---|
static void |
clearAllMappers() |
static void |
findAndSetMappers(com.atlassian.plugin.PluginAccessor pluginAccessor)
Using the supplied PluginAccessor find all of the currently available search mappers and set them on
the thread local.
|
static Map<String,LuceneQueryMapper> |
getQueryMappers() |
static Map<String,LuceneResultFilterMapper> |
getResultFilterMappers() |
static Map<String,LuceneSearchFilterMapper> |
getSearchFilterMappers() |
static Map<String,LuceneSortMapper> |
getSortMappers() |
public static void findAndSetMappers(com.atlassian.plugin.PluginAccessor pluginAccessor)
Using the supplied PluginAccessor find all of the currently available search mappers and set them on the thread local.
As an optimisation over calling the plugin system 3 times, once for each category of mapper required, this method instead gets all enabled plugin modules and separates them itself into the 3 different category (this should result in a total of one less iteration over the plugins).
pluginAccessor
- the PluginAccessor to be used to find the available mapper modules.public static Map<String,LuceneQueryMapper> getQueryMappers()
public static Map<String,LuceneSortMapper> getSortMappers()
public static Map<String,LuceneResultFilterMapper> getResultFilterMappers()
public static Map<String,LuceneSearchFilterMapper> getSearchFilterMappers()
public static void clearAllMappers()
Copyright © 2003–2015 Atlassian. All rights reserved.