com.atlassian.jira.issue.search.quicksearch
Class ComponentQuickSearchHandler

java.lang.Object
  extended by com.atlassian.jira.issue.search.quicksearch.SingleWordQuickSearchHandler
      extended by com.atlassian.jira.issue.search.quicksearch.PrefixedSingleWordQuickSearchHandler
          extended by com.atlassian.jira.issue.search.quicksearch.ComponentQuickSearchHandler
All Implemented Interfaces:
QuickSearchHandler

public class ComponentQuickSearchHandler
extends PrefixedSingleWordQuickSearchHandler

Quick search handler for components. Note that this handler needs to run after the Project Handler has run.

Since:
v3.13

Constructor Summary
ComponentQuickSearchHandler(ProjectComponentManager projectComponentManager, ProjectManager projectManager, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
protected  Set<String> getAllNamesMatchingSubstring(Collection projectComponents, String name)
           
protected  String getPrefix()
          Gets the prefix this quick search handler handles
protected  Map handleWordSuffix(String wordSuffix, QuickSearchResult searchResult)
          Handle the word suffix (original word without the prefix)
 
Methods inherited from class com.atlassian.jira.issue.search.quicksearch.PrefixedSingleWordQuickSearchHandler
handleWord
 
Methods inherited from class com.atlassian.jira.issue.search.quicksearch.SingleWordQuickSearchHandler
getByName, modifySearchResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentQuickSearchHandler

public ComponentQuickSearchHandler(ProjectComponentManager projectComponentManager,
                                   ProjectManager projectManager,
                                   PermissionManager permissionManager,
                                   JiraAuthenticationContext authenticationContext)
Method Detail

handleWordSuffix

protected Map handleWordSuffix(String wordSuffix,
                               QuickSearchResult searchResult)
Description copied from class: PrefixedSingleWordQuickSearchHandler
Handle the word suffix (original word without the prefix)

Specified by:
handleWordSuffix in class PrefixedSingleWordQuickSearchHandler
Parameters:
wordSuffix - the original word minus the prefix
searchResult - search result
Returns:
Map of search parameters

getPrefix

protected String getPrefix()
Description copied from class: PrefixedSingleWordQuickSearchHandler
Gets the prefix this quick search handler handles

Specified by:
getPrefix in class PrefixedSingleWordQuickSearchHandler
Returns:
handled prefix

getAllNamesMatchingSubstring

protected Set<String> getAllNamesMatchingSubstring(Collection projectComponents,
                                                   String name)


Copyright © 2002-2014 Atlassian. All Rights Reserved.