Class AbstractIssuePickerSearchProvider
java.lang.Object
com.atlassian.jira.bc.issue.search.AbstractIssuePickerSearchProvider
- All Implemented Interfaces:
IssuePickerSearchProvider
- Direct Known Subclasses:
HistoryIssuePickerSearchProvider,SearchIssuePickerSearchProvider
public abstract class AbstractIssuePickerSearchProvider
extends Object
implements IssuePickerSearchProvider
Abstract convenience class with common methods for IssuePickerSearchProviders.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractIssuePickerSearchProvider(ConstantsManager constantsManager, SearchService searchService) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringgetId()This returns a simple ID of the results, used mainly for html tag idsprotected abstract StringThis returns the label key of the results, eg why type of results are they.protected abstract SearchRequestgetRequest(IssuePickerSearchService.IssuePickerParameters issuePickerParams) Return the search that this provider uses as its view of all issues.getResults(JiraServiceContext context, IssuePickerSearchService.IssuePickerParameters issuePickerParams, int maxIssueCount) Returns a list of issues matching the query stringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.bc.issue.search.IssuePickerSearchProvider
handlesParameters
-
Constructor Details
-
AbstractIssuePickerSearchProvider
protected AbstractIssuePickerSearchProvider(ConstantsManager constantsManager, SearchService searchService)
-
-
Method Details
-
getResults
public IssuePickerResults getResults(JiraServiceContext context, IssuePickerSearchService.IssuePickerParameters issuePickerParams, int maxIssueCount) Description copied from interface:IssuePickerSearchProviderReturns a list of issues matching the query string- Specified by:
getResultsin interfaceIssuePickerSearchProvider- Parameters:
context- service contextissuePickerParams- params for issue pickermaxIssueCount- Number of issues still needed.- Returns:
- list of issues that match query (implementation specific) which is never null.
- See Also:
-
getLabelKey
This returns the label key of the results, eg why type of results are they.- Returns:
- an i18n key.
-
getId
This returns a simple ID of the results, used mainly for html tag ids- Returns:
- an i18n key.
-
getRequest
protected abstract SearchRequest getRequest(IssuePickerSearchService.IssuePickerParameters issuePickerParams) Return the search that this provider uses as its view of all issues.- Parameters:
issuePickerParams- the paramaters from the issue picker.- Returns:
- the search request that returns all issues the provide sees and works with.
-