com.atlassian.jira.issue.search.searchers.util
Class IssueConstantIndexedInputHelper<T extends IssueConstant>

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

public class IssueConstantIndexedInputHelper<T extends IssueConstant>
extends DefaultIndexedInputHelper<T>

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

Since:
v4.0

Constructor Summary
IssueConstantIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry, SearchContextVisibilityChecker searchContextVisibilityChecker, NameResolver<T> issueConstantResolver)
           
 
Method Summary
protected  SingleValueOperand createSingleValueOperandFromId(java.lang.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

IssueConstantIndexedInputHelper

public IssueConstantIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver,
                                       JqlOperandResolver operandResolver,
                                       FieldFlagOperandRegistry fieldFlagOperandRegistry,
                                       SearchContextVisibilityChecker searchContextVisibilityChecker,
                                       NameResolver<T> issueConstantResolver)
Method Detail

createSingleValueOperandFromId

protected SingleValueOperand createSingleValueOperandFromId(java.lang.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<T extends IssueConstant>
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-2011 Atlassian. All Rights Reserved.