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

java.lang.Object
  extended by com.atlassian.jira.issue.search.quicksearch.SingleWordQuickSearchHandler
All Implemented Interfaces:
QuickSearchHandler
Direct Known Subclasses:
DateQuickSearchHandler, IssueTypeQuickSearchHandler, LocalDateQuickSearchHandler, MyIssuesQuickSearchHandler, OverdueQuickSearchHandler, PrefixedSingleWordQuickSearchHandler, PriorityQuickSearchHandler, ProjectQuickSearchHandler, ResolutionQuickSearchHandler, StatusQuickSearchHandler

public abstract class SingleWordQuickSearchHandler
extends Object
implements QuickSearchHandler


Constructor Summary
SingleWordQuickSearchHandler()
           
 
Method Summary
protected static org.ofbiz.core.entity.GenericValue getByName(Collection genericValues, String name)
          For a Collection of Generic Values, return the one that has genericValue.getString("name") equal to name
protected abstract  Map handleWord(String word, QuickSearchResult searchResult)
          Hanldle a single word, and return a map of parameters
 void modifySearchResult(QuickSearchResult searchResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleWordQuickSearchHandler

public SingleWordQuickSearchHandler()
Method Detail

modifySearchResult

public void modifySearchResult(QuickSearchResult searchResult)
Specified by:
modifySearchResult in interface QuickSearchHandler

handleWord

protected abstract Map handleWord(String word,
                                  QuickSearchResult searchResult)
Hanldle a single word, and return a map of parameters

Parameters:
word - A single word - guaranteed to not be null
searchResult - The existing search result
Returns:
A Map of parameters that can be used as a URL.

getByName

protected static org.ofbiz.core.entity.GenericValue getByName(Collection genericValues,
                                                              String name)
For a Collection of Generic Values, return the one that has genericValue.getString("name") equal to name



Copyright © 2002-2014 Atlassian. All Rights Reserved.