public abstract class VersionQuickSearchHandler extends PrefixedSingleWordQuickSearchHandler
You can use wildcards '*'
and '?'
to match multiple versions. Example:
'2*'
will match versions '2'
, '2.1'
, '2.2'
and '2.2.2'
Constructor and Description |
---|
VersionQuickSearchHandler(VersionManager versionManager,
ProjectManager projectManager,
PermissionManager permissionManager,
JiraAuthenticationContext authenticationContext) |
Modifier and Type | Method and Description |
---|---|
static Set<String> |
getAllVersionNamesMatchingSubstring(Collection<Version> versions,
String name)
Return
|
protected abstract String |
getPrefix()
Gets the prefix this quick search handler handles
|
protected abstract String |
getSearchParamName() |
protected Map |
handleWordSuffix(String versionRegexp,
QuickSearchResult searchResult)
Handle the word suffix (original word without the prefix)
|
handleWord
getIssueConstantByName, modifySearchResult
public VersionQuickSearchHandler(VersionManager versionManager, ProjectManager projectManager, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext)
protected Map handleWordSuffix(String versionRegexp, QuickSearchResult searchResult)
PrefixedSingleWordQuickSearchHandler
handleWordSuffix
in class PrefixedSingleWordQuickSearchHandler
versionRegexp
- the original word minus the prefixsearchResult
- search resultpublic static Set<String> getAllVersionNamesMatchingSubstring(Collection<Version> versions, String name)
versions
- The collection of versions to limit fromname
- A name which can include wildcards (eg '*'
or '?'
)protected abstract String getPrefix()
PrefixedSingleWordQuickSearchHandler
getPrefix
in class PrefixedSingleWordQuickSearchHandler
protected abstract String getSearchParamName()
Copyright © 2002-2018 Atlassian. All Rights Reserved.