public class HistoryIssuePickerSearchProvider extends AbstractIssuePickerSearchProvider
IssuePickerSearchProvider
that searches the
user history in the session.
Query is tokenized and then matched against a key and summary. All tokens must exist in summary OR key.Constructor and Description |
---|
HistoryIssuePickerSearchProvider(IssueFactory issueFactory,
SearchProvider searchProvider,
ConstantsManager constantsManager,
LuceneQueryModifier modifier) |
Modifier and Type | Method and Description |
---|---|
protected String |
getId()
This returns a simple ID of the results, used mainly for html tag ids
|
protected String |
getLabelKey()
This returns the label key of the results, eg why type of results are they.
|
protected SearchRequest |
getRequest(IssuePickerSearchService.IssuePickerParameters issuePickerParams)
Return the search that this provider uses as its view of all issues.
|
boolean |
handlesParameters(ApplicationUser searcher,
IssuePickerSearchService.IssuePickerParameters issuePickerParams)
Indicates to the caller whether or not this provider can handle the passed parameters.
|
getResults
public HistoryIssuePickerSearchProvider(IssueFactory issueFactory, SearchProvider searchProvider, ConstantsManager constantsManager, LuceneQueryModifier modifier)
protected String getId()
AbstractIssuePickerSearchProvider
getId
in class AbstractIssuePickerSearchProvider
protected String getLabelKey()
AbstractIssuePickerSearchProvider
getLabelKey
in class AbstractIssuePickerSearchProvider
protected SearchRequest getRequest(IssuePickerSearchService.IssuePickerParameters issuePickerParams)
AbstractIssuePickerSearchProvider
getRequest
in class AbstractIssuePickerSearchProvider
issuePickerParams
- the paramaters from the issue picker.public boolean handlesParameters(ApplicationUser searcher, IssuePickerSearchService.IssuePickerParameters issuePickerParams)
IssuePickerSearchProvider
searcher
- the user performing the search.issuePickerParams
- the parameters to check.Copyright © 2002-2019 Atlassian. All Rights Reserved.