Interface IssueSearcherManager
- All Known Implementing Classes:
DefaultIssueSearcherManager
@PublicApi
public interface IssueSearcherManager
Manager to obtain a list of
IssueSearcher
objects as well as SearcherGroup
collections-
Method Summary
Modifier and TypeMethodDescriptionReturn all the active searchers in JIRA.getSearcher
(String id) Get a searcher by the searchers name.Get all searcher groups.getSearchers
(ApplicationUser searcher, SearchContext context) Get searchers that are applicable for a given context.void
refresh()
Refreshes theIssueSearcher
cache
-
Method Details
-
getSearchers
Get searchers that are applicable for a given context. This is found through the {@link com.atlassian.jira.issue.search.searchers.IssueSearcher#getSearchRenderer()#isShown(SearchContext)} method.- Parameters:
searcher
- that is performing this action.context
- for the list of searchers. Must not be null- Returns:
- Collection of
IssueSearcher
-
getAllSearchers
Collection<IssueSearcher<?>> getAllSearchers()Return all the active searchers in JIRA. It will not return the searchers unless they are associated with a field.- Returns:
- all the searchers in JIRA.
-
getSearcherGroups
Collection<SearcherGroup> getSearcherGroups()Get all searcher groups. Note that theSearcherGroup
will still appear even if noIssueSearcher
are shown for the group.- Returns:
- Collection of
SearcherGroup
-
getSearcher
Get a searcher by the searchers name.- Parameters:
id
- the string identifier returned by {@link com.atlassian.jira.issue.search.searchers.IssueSearcher#getSearchInformation()#getId()}- Returns:
- the searcher matching the id, null if none is found.
-
refresh
void refresh()Refreshes theIssueSearcher
cache
-