Class PrefixedSingleWordQuickSearchHandler
java.lang.Object
com.atlassian.jira.issue.search.quicksearch.SingleWordQuickSearchHandler
com.atlassian.jira.issue.search.quicksearch.PrefixedSingleWordQuickSearchHandler
- All Implemented Interfaces:
QuickSearchHandler
- Direct Known Subclasses:
ComponentQuickSearchHandler
,ReporterQuickSearchHandler
,VersionQuickSearchHandler
Convenient class for all quick search handlers that handle single words with a prefix.
- Since:
- v3.13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
Gets the prefix this quick search handler handlesprotected Map
handleWord
(String word, QuickSearchResult searchResult) Hanldle a single word, and return a map of parametersprotected abstract Map
handleWordSuffix
(String wordSuffix, QuickSearchResult searchResult) Handle the word suffix (original word without the prefix)Methods inherited from class com.atlassian.jira.issue.search.quicksearch.SingleWordQuickSearchHandler
getIssueConstantByName, modifySearchResult
-
Constructor Details
-
PrefixedSingleWordQuickSearchHandler
public PrefixedSingleWordQuickSearchHandler()
-
-
Method Details
-
handleWord
Description copied from class:SingleWordQuickSearchHandler
Hanldle a single word, and return a map of parameters- Specified by:
handleWord
in classSingleWordQuickSearchHandler
- Parameters:
word
- A single word - guaranteed to not be nullsearchResult
- The existing search result- Returns:
- A Map of parameters that can be used as a URL.
-
getPrefix
Gets the prefix this quick search handler handles- Returns:
- handled prefix
-
handleWordSuffix
Handle the word suffix (original word without the prefix)- Parameters:
wordSuffix
- the original word minus the prefixsearchResult
- search result- Returns:
- Map of search parameters
-