com.atlassian.jira.bc.issue.search
Class HistoryIssuePickerSearchProvider

java.lang.Object
  extended by com.atlassian.jira.bc.issue.search.AbstractIssuePickerSearchProvider
      extended by com.atlassian.jira.bc.issue.search.HistoryIssuePickerSearchProvider
All Implemented Interfaces:
IssuePickerSearchProvider

public class HistoryIssuePickerSearchProvider
extends AbstractIssuePickerSearchProvider

Implemenation of 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 Summary
HistoryIssuePickerSearchProvider(SearchProvider searchProvider, ConstantsManager constantsManager, LuceneQueryModifier modifier)
           
 
Method Summary
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(com.atlassian.crowd.embedded.api.User searcher, IssuePickerSearchService.IssuePickerParameters issuePickerParams)
          Indicates to the caller whether or not this provider can handle the passed parameters.
 
Methods inherited from class com.atlassian.jira.bc.issue.search.AbstractIssuePickerSearchProvider
getResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryIssuePickerSearchProvider

public HistoryIssuePickerSearchProvider(SearchProvider searchProvider,
                                        ConstantsManager constantsManager,
                                        LuceneQueryModifier modifier)
Method Detail

getId

protected String getId()
Description copied from class: AbstractIssuePickerSearchProvider
This returns a simple ID of the results, used mainly for html tag ids

Specified by:
getId in class AbstractIssuePickerSearchProvider
Returns:
an i18n key.

getLabelKey

protected String getLabelKey()
Description copied from class: AbstractIssuePickerSearchProvider
This returns the label key of the results, eg why type of results are they.

Specified by:
getLabelKey in class AbstractIssuePickerSearchProvider
Returns:
an i18n key.

getRequest

protected SearchRequest getRequest(IssuePickerSearchService.IssuePickerParameters issuePickerParams)
Description copied from class: AbstractIssuePickerSearchProvider
Return the search that this provider uses as its view of all issues.

Specified by:
getRequest in class AbstractIssuePickerSearchProvider
Parameters:
issuePickerParams - the paramaters from the issue picker.
Returns:
the search request that returns all issues the provide sees and works with.

handlesParameters

public boolean handlesParameters(com.atlassian.crowd.embedded.api.User searcher,
                                 IssuePickerSearchService.IssuePickerParameters issuePickerParams)
Description copied from interface: IssuePickerSearchProvider
Indicates to the caller whether or not this provider can handle the passed parameters.

Parameters:
searcher - the user performing the search.
issuePickerParams - the parameters to check.
Returns:
true if the provider can handle the passed parameters false otherwise.


Copyright © 2002-2013 Atlassian. All Rights Reserved.