Class VersionQuickSearchHandler
java.lang.Object
com.atlassian.jira.issue.search.quicksearch.SingleWordQuickSearchHandler
com.atlassian.jira.issue.search.quicksearch.PrefixedSingleWordQuickSearchHandler
com.atlassian.jira.issue.search.quicksearch.VersionQuickSearchHandler
- All Implemented Interfaces:
QuickSearchHandler
- Direct Known Subclasses:
FixForQuickSearchHandler,RaisedInVersionQuickSearchHandler
Note that this handler needs to run after the Project Handler has run.
You can use wildcards '*' and '?' to match multiple versions. Example:
'2*' will match versions '2', '2.1', '2.2' and '2.2.2'
-
Constructor Summary
ConstructorsConstructorDescriptionVersionQuickSearchHandler(VersionManager versionManager, ProjectManager projectManager, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext) -
Method Summary
Modifier and TypeMethodDescriptiongetAllVersionNamesMatchingSubstring(Collection<Version> versions, String name) Returnprotected abstract StringGets the prefix this quick search handler handlesprotected abstract Stringprotected MaphandleWordSuffix(String versionRegexp, QuickSearchResult searchResult) Handle the word suffix (original word without the prefix)Methods inherited from class com.atlassian.jira.issue.search.quicksearch.PrefixedSingleWordQuickSearchHandler
handleWordMethods inherited from class com.atlassian.jira.issue.search.quicksearch.SingleWordQuickSearchHandler
getIssueConstantByName, modifySearchResult
-
Constructor Details
-
VersionQuickSearchHandler
public VersionQuickSearchHandler(VersionManager versionManager, ProjectManager projectManager, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext)
-
-
Method Details
-
handleWordSuffix
Description copied from class:PrefixedSingleWordQuickSearchHandlerHandle the word suffix (original word without the prefix)- Specified by:
handleWordSuffixin classPrefixedSingleWordQuickSearchHandler- Parameters:
versionRegexp- the original word minus the prefixsearchResult- search result- Returns:
- Map of search parameters
-
getAllVersionNamesMatchingSubstring
public static Set<String> getAllVersionNamesMatchingSubstring(Collection<Version> versions, String name) Return- Parameters:
versions- The collection of versions to limit fromname- A name which can include wildcards (eg'*'or'?')- Returns:
- A list of versionIds (as Strings) that match this parameter
-
getPrefix
Description copied from class:PrefixedSingleWordQuickSearchHandlerGets the prefix this quick search handler handles- Specified by:
getPrefixin classPrefixedSingleWordQuickSearchHandler- Returns:
- handled prefix
-
getSearchParamName
-