com.atlassian.jira.jql.resolver
Class IssueConstantInfoResolver<T extends IssueConstant>

java.lang.Object
  extended by com.atlassian.jira.jql.resolver.IssueConstantInfoResolver<T>
All Implemented Interfaces:
IndexInfoResolver<T>
Direct Known Subclasses:
ResolutionIndexInfoResolver

public class IssueConstantInfoResolver<T extends IssueConstant>
extends Object
implements IndexInfoResolver<T>

Resolves index info with a lucene field using the id of the domain object T to get the indexed values from a NameResolver<T> .

Since:
v4.0

Constructor Summary
IssueConstantInfoResolver(NameResolver<T> resolver)
           
 
Method Summary
 String getIndexedValue(T indexedObject)
          Gets an indexed value from a domain object.
 List<String> getIndexedValues(Long singleValueOperand)
          Provides the values in the index for the single value operand with the given Long value.
 List<String> getIndexedValues(String singleValueOperand)
          Provides the values in the index for the operand with the given String value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueConstantInfoResolver

public IssueConstantInfoResolver(NameResolver<T> resolver)
Parameters:
resolver - the name resolver to look up the id if necessary.
Method Detail

getIndexedValues

public List<String> getIndexedValues(String singleValueOperand)
Description copied from interface: IndexInfoResolver
Provides the values in the index for the operand with the given String value.

Specified by:
getIndexedValues in interface IndexInfoResolver<T extends IssueConstant>
Parameters:
singleValueOperand - the value whose indexed term equivalent is to be returned.
Returns:
the values to put or search for in the index, possibly empty, never containing null.

getIndexedValues

public List<String> getIndexedValues(Long singleValueOperand)
Description copied from interface: IndexInfoResolver
Provides the values in the index for the single value operand with the given Long value.

Specified by:
getIndexedValues in interface IndexInfoResolver<T extends IssueConstant>
Parameters:
singleValueOperand - the value whose indexed term equivalent is to be returned.
Returns:
the values to put or search for in the index, possibly empty, never containing null.

getIndexedValue

public String getIndexedValue(T indexedObject)
Description copied from interface: IndexInfoResolver
Gets an indexed value from a domain object.

Specified by:
getIndexedValue in interface IndexInfoResolver<T extends IssueConstant>
Parameters:
indexedObject - the domain object. Does not accept null.
Returns:
the indexed value.


Copyright © 2002-2014 Atlassian. All Rights Reserved.