com.atlassian.jira.issue.search.searchers.util
Class ComponentIndexedInputHelper

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.util.DefaultIndexedInputHelper<ProjectComponent>
      extended by com.atlassian.jira.issue.search.searchers.util.ComponentIndexedInputHelper
All Implemented Interfaces:
IndexedInputHelper

public class ComponentIndexedInputHelper
extends DefaultIndexedInputHelper<ProjectComponent>

Extension of DefaultIndexedInputHelper that knows how to create SingleValueOperands by resolving ids to Component names.

Since:
v4.0

Constructor Summary
ComponentIndexedInputHelper(IndexInfoResolver<ProjectComponent> componentIndexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry, SearchContextVisibilityChecker searchContextVisibilityChecker, NameResolver<ProjectComponent> componentResolver)
           
 
Method Summary
protected  SingleValueOperand createSingleValueOperandFromId(String stringValue)
          Resolve this string representation of a navigator value (known not to be a field flag) into an operand to be used in a clause.
 
Methods inherited from class com.atlassian.jira.issue.search.searchers.util.DefaultIndexedInputHelper
getAllIndexValuesForMatchingClauses, getAllNavigatorValuesForMatchingClauses, getClauseForNavigatorValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentIndexedInputHelper

public ComponentIndexedInputHelper(IndexInfoResolver<ProjectComponent> componentIndexInfoResolver,
                                   JqlOperandResolver operandResolver,
                                   FieldFlagOperandRegistry fieldFlagOperandRegistry,
                                   SearchContextVisibilityChecker searchContextVisibilityChecker,
                                   NameResolver<ProjectComponent> componentResolver)
Method Detail

createSingleValueOperandFromId

protected SingleValueOperand createSingleValueOperandFromId(String stringValue)
Description copied from class: DefaultIndexedInputHelper
Resolve this string representation of a navigator value (known not to be a field flag) into an operand to be used in a clause. Override this to provide domain-specific resolution (e.g. resolve version ids to names).

Overrides:
createSingleValueOperandFromId in class DefaultIndexedInputHelper<ProjectComponent>
Parameters:
stringValue - the navigator value as a string e.g. 123
Returns:
the operand which best represents this navigator value - either a string name or the id or whatever.


Copyright © 2002-2013 Atlassian. All Rights Reserved.