Class SelectCustomFieldIndexInfoResolver

java.lang.Object
com.atlassian.jira.jql.resolver.SelectCustomFieldIndexInfoResolver
All Implemented Interfaces:
IndexInfoResolver<CustomField>

public class SelectCustomFieldIndexInfoResolver extends Object implements IndexInfoResolver<CustomField>
Index resolver that can find the index values for select fields.
Since:
v4.0
  • Constructor Details

    • SelectCustomFieldIndexInfoResolver

      public SelectCustomFieldIndexInfoResolver(CustomFieldOptionResolver customFieldOptionResolver)
  • Method Details

    • 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<CustomField>
      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<CustomField>
      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(CustomField indexedObject)
      Description copied from interface: IndexInfoResolver
      Gets an indexed value from a domain object.
      Specified by:
      getIndexedValue in interface IndexInfoResolver<CustomField>
      Parameters:
      indexedObject - the domain object. Does not accept null.
      Returns:
      the indexed value.