com.atlassian.jira.issue.search.searchers.transformer
Class ComponentSearchInputTransformer

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.transformer.IdIndexedSearchInputTransformer<ProjectComponent>
      extended by com.atlassian.jira.issue.search.searchers.transformer.ComponentSearchInputTransformer
All Implemented Interfaces:
SearchInputTransformer

public class ComponentSearchInputTransformer
extends IdIndexedSearchInputTransformer<ProjectComponent>

A component-specific IdIndexedSearchInputTransformer.

Since:
v4.0

Field Summary
 
Fields inherited from class com.atlassian.jira.issue.search.searchers.transformer.IdIndexedSearchInputTransformer
fieldFlagOperandRegistry, indexInfoResolver, operandResolver, searchContextVisibilityChecker
 
Constructor Summary
ComponentSearchInputTransformer(ClauseNames clauseNames, String urlParameterName, IndexInfoResolver<ProjectComponent> componentIndexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry, SearchContextVisibilityChecker searchContextVisibilityChecker, NameResolver<ProjectComponent> componentResolver)
           
 
Method Summary
 Clause getSearchClause(User searcher, FieldValuesHolder fieldValuesHolder)
          For this implementation we expect that the fieldValuesHolder will contain a list of strings or nothing at all, if not then this will throw an exception.
 
Methods inherited from class com.atlassian.jira.issue.search.searchers.transformer.IdIndexedSearchInputTransformer
doRelevantClausesFitFilterForm, getDefaultIndexedInputHelper, getIndexedInputHelper, populateFromParams, populateFromQuery, validateParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentSearchInputTransformer

public ComponentSearchInputTransformer(ClauseNames clauseNames,
                                       String urlParameterName,
                                       IndexInfoResolver<ProjectComponent> componentIndexInfoResolver,
                                       JqlOperandResolver operandResolver,
                                       FieldFlagOperandRegistry fieldFlagOperandRegistry,
                                       SearchContextVisibilityChecker searchContextVisibilityChecker,
                                       NameResolver<ProjectComponent> componentResolver)
Method Detail

getSearchClause

public Clause getSearchClause(User searcher,
                              FieldValuesHolder fieldValuesHolder)
Description copied from class: IdIndexedSearchInputTransformer
For this implementation we expect that the fieldValuesHolder will contain a list of strings or nothing at all, if not then this will throw an exception.

Specified by:
getSearchClause in interface SearchInputTransformer
Overrides:
getSearchClause in class IdIndexedSearchInputTransformer<ProjectComponent>
Parameters:
searcher - the user performing the search
fieldValuesHolder - contains values populated by the searchers @return Clause that represents the raw values.
Returns:
a Clause that represents the users search based on the fieldValuesHolder; null if this searcher has no responsibility in the given input.


Copyright © 2002-2009 Atlassian. All Rights Reserved.