public class

IssueConstantInfoResolver

extends Object
implements IndexInfoResolver<T>
java.lang.Object
   ↳ com.atlassian.jira.jql.resolver.IssueConstantInfoResolver<T extends com.atlassian.jira.issue.IssueConstant>
Known Direct Subclasses

Class Overview

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

Summary

Public Constructors
IssueConstantInfoResolver(NameResolver<T> resolver)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.jql.resolver.IndexInfoResolver

Public Constructors

public IssueConstantInfoResolver (NameResolver<T> resolver)

Parameters
resolver the name resolver to look up the id if necessary.

Public Methods

public String getIndexedValue (T indexedObject)

Gets an indexed value from a domain object.

Parameters
indexedObject the domain object. Does not accept null.
Returns
  • the indexed value.

public List<String> getIndexedValues (Long singleValueOperand)

Provides the values in the index for the single value operand with the given Long value.

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.

public List<String> getIndexedValues (String singleValueOperand)

Provides the values in the index for the operand with the given String value.

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.