public interface

IndexedInputHelper

com.atlassian.jira.issue.search.searchers.util.IndexedInputHelper
Known Indirect Subclasses

Class Overview

Provides methods for retreiving the Navigator or index representations of the values in a query clause, be they index values, functions or string values. NOTE: this method will give back the values it finds in the named clauses and does not take into account the affects of the surrounding logical search query (i.e. AND, NOT, OR clauses that the clause may be contained in).

Summary

Public Methods
Set<String> getAllIndexValuesForMatchingClauses(User searcher, ClauseNames jqlClauseNames, Query query, SearchContext searchContext)
Retrieves the index values for the clauses in the SearchRequest.
Set<String> getAllNavigatorValuesForMatchingClauses(User searcher, ClauseNames jqlClauseNames, Query query, SearchContext searchContext)
Retreives the navigator id values for the values in the clauses.
Clause getClauseForNavigatorValues(String jqlClauseName, Set<String> values)
Converts a set of Navigator value strings into a Clause that will match at least one of the specified values for the given field.

Public Methods

public Set<String> getAllIndexValuesForMatchingClauses (User searcher, ClauseNames jqlClauseNames, Query query, SearchContext searchContext)

Retrieves the index values for the clauses in the SearchRequest. Function Operands are expanded to their values.

Parameters
searcher the user running the search
jqlClauseNames the names of the clauses on which to retreive the values.
query the search criteria used to populate the field values holder.
searchContext the context under which the search is being performed
Returns
  • a set of strings containing the index values of the clause values. Never null.

public Set<String> getAllNavigatorValuesForMatchingClauses (User searcher, ClauseNames jqlClauseNames, Query query, SearchContext searchContext)

Retreives the navigator id values for the values in the clauses. If there is a flag associated with a function operand then that flag is returned, otherwise the function operand is expanded to its index values.

Parameters
searcher the user running the search
jqlClauseNames the names of the clauses on which to retreive the values.
query the search criteria used to populate the field values holder.
searchContext the context under which the search is being performed
Returns
  • a set of strings containing the navigator values of the clause values. Never Null.

public Clause getClauseForNavigatorValues (String jqlClauseName, Set<String> values)

Converts a set of Navigator value strings into a Clause that will match at least one of the specified values for the given field.

Note: where possible, the helper should try to create a clause, even when the value strings do not make sense in the given domain. That is, it is preferred that a non-validating clause gets created than no clause at all.

Parameters
jqlClauseName the name of the clause to generate
values a set of Navigator value strings; may contain flag values. May not be null.
Returns
  • a clause that will match any of the values specified; null if no values were specified.