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

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

public class LuceneCurrentSearchIssuePickerSearchProvider
extends AbstractIssuePickerSearchProvider

This search provider uses the current JIRA search plus it uses Lucene query objects to wild card on issue key and summary.


Constructor Summary
LuceneCurrentSearchIssuePickerSearchProvider(JiraAuthenticationContext authenticationContext, SearchProvider searchProvider, ConstantsManager constantsManager, SearchService searchService, 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

LuceneCurrentSearchIssuePickerSearchProvider

public LuceneCurrentSearchIssuePickerSearchProvider(JiraAuthenticationContext authenticationContext,
                                                    SearchProvider searchProvider,
                                                    ConstantsManager constantsManager,
                                                    SearchService searchService,
                                                    LuceneQueryModifier modifier)
Parameters:
authenticationContext - The auth context used to get current User
searchProvider - the SearcProvider to do actual searching
constantsManager - ConstantsManager
searchService - The search service sued to construct a serch Query
modifier - Helps rewrite the lucene query so that "NOTs" work as expected.
See Also:
IssuePickerSearchProvider
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-2014 Atlassian. All Rights Reserved.