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

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

public class VersionIndexedInputHelper
extends DefaultIndexedInputHelper<Version>

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

Since:
v4.0

Constructor Summary
VersionIndexedInputHelper(IndexInfoResolver<Version> versionIndexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry, NameResolver<Version> versionResolver)
           
VersionIndexedInputHelper(IndexInfoResolver<Version> versionIndexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry, SearchContextVisibilityChecker searchContextVisibilityChecker, NameResolver<Version> versionResolver)
          Deprecated. 
 
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 (assuming that this is a single value operand).
 
Methods inherited from class com.atlassian.jira.issue.search.searchers.util.DefaultIndexedInputHelper
createOperand, getAllIndexValuesForMatchingClauses, getAllNavigatorValuesForMatchingClauses, getClauseForNavigatorValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionIndexedInputHelper

public VersionIndexedInputHelper(IndexInfoResolver<Version> versionIndexInfoResolver,
                                 JqlOperandResolver operandResolver,
                                 FieldFlagOperandRegistry fieldFlagOperandRegistry,
                                 NameResolver<Version> versionResolver)

VersionIndexedInputHelper

@Deprecated
public VersionIndexedInputHelper(IndexInfoResolver<Version> versionIndexInfoResolver,
                                            JqlOperandResolver operandResolver,
                                            FieldFlagOperandRegistry fieldFlagOperandRegistry,
                                            SearchContextVisibilityChecker searchContextVisibilityChecker,
                                            NameResolver<Version> versionResolver)
Deprecated. 

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 (assuming that this is a single value operand). Override this to provide domain-specific resolution (e.g. resolve version ids to names).

Overrides:
createSingleValueOperandFromId in class DefaultIndexedInputHelper<Version>
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-2014 Atlassian. All Rights Reserved.