com.atlassian.jira.issue.search.quicksearch
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
public abstract class PrefixedSingleWordQuickSearchHandler
- extends SingleWordQuickSearchHandler
Convenient class for all quick search handlers that handle single words with a prefix.
- Since:
- v3.13
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrefixedSingleWordQuickSearchHandler
public PrefixedSingleWordQuickSearchHandler()
handleWord
protected Map handleWord(String word,
QuickSearchResult searchResult)
- Description copied from class:
SingleWordQuickSearchHandler
- Hanldle a single word, and return a map of parameters
- Specified by:
handleWord
in class SingleWordQuickSearchHandler
- 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
protected abstract String getPrefix()
- Gets the prefix this quick search handler handles
- Returns:
- handled prefix
handleWordSuffix
protected abstract Map handleWordSuffix(String wordSuffix,
QuickSearchResult searchResult)
- Handle the word suffix (original word without the prefix)
- Parameters:
wordSuffix
- the original word minus the prefixsearchResult
- search result
- Returns:
- Map of search parameters
Copyright © 2002-2011 Atlassian. All Rights Reserved.