public class DefaultIssueSearcherManager extends Object implements IssueSearcherManager
Constructor and Description |
---|
DefaultIssueSearcherManager(SearchHandlerManager manager) |
Modifier and Type | Method and Description |
---|---|
Collection<IssueSearcher<?>> |
getAllSearchers()
Return all the active searchers in JIRA.
|
IssueSearcher<?> |
getSearcher(String id)
Get a searcher by the searchers name.
|
Collection<SearcherGroup> |
getSearcherGroups()
Get all searcher groups.
|
Collection<SearcherGroup> |
getSearcherGroups(SearchContext searchContext)
Get all searcher groups with the
IssueSearcher that are applicable for the context. |
Collection<IssueSearcher<?>> |
getSearchers(ApplicationUser searcher,
SearchContext context)
Get searchers that are applicable for a given context.
|
void |
refresh()
Refreshes the
IssueSearcher cache |
public DefaultIssueSearcherManager(SearchHandlerManager manager)
public Collection<IssueSearcher<?>> getSearchers(ApplicationUser searcher, SearchContext context)
IssueSearcherManager
com.atlassian.jira.issue.search.searchers.IssueSearcher#getSearchRenderer()#isShown(SearchContext)
method.getSearchers
in interface IssueSearcherManager
searcher
- that is performing this action.context
- for the list of searchers. Must not be nullIssueSearcher
public Collection<IssueSearcher<?>> getAllSearchers()
IssueSearcherManager
getAllSearchers
in interface IssueSearcherManager
public Collection<SearcherGroup> getSearcherGroups(SearchContext searchContext)
IssueSearcherManager
IssueSearcher
that are applicable for the context.
com.atlassian.jira.issue.search.searchers.IssueSearcher#getSearchRenderer()#isShown(SearchContext)
method.
Note that the SearcherGroup
will still appear even if no IssueSearcher
are shown for the group.getSearcherGroups
in interface IssueSearcherManager
searchContext
- for the searcher groups.SearcherGroup
public Collection<SearcherGroup> getSearcherGroups()
IssueSearcherManager
SearcherGroup
will
still appear even if no IssueSearcher
are shown for the group.getSearcherGroups
in interface IssueSearcherManager
SearcherGroup
public IssueSearcher<?> getSearcher(String id)
IssueSearcherManager
getSearcher
in interface IssueSearcherManager
id
- the string identifier returned by com.atlassian.jira.issue.search.searchers.IssueSearcher#getSearchInformation()#getId()
public void refresh()
IssueSearcherManager
IssueSearcher
cacherefresh
in interface IssueSearcherManager
Copyright © 2002-2018 Atlassian. All Rights Reserved.