Class DefaultIndexedInputHelper<T>
java.lang.Object
com.atlassian.jira.issue.search.searchers.util.DefaultIndexedInputHelper<T>
- All Implemented Interfaces:
IndexedInputHelper
- Direct Known Subclasses:
IssueConstantIndexedInputHelper,VersionIndexedInputHelper
@NonInjectableComponent
public class DefaultIndexedInputHelper<T>
extends Object
implements IndexedInputHelper
The default implementation for the
IndexedInputHelper.
This class should be constructed as needed and not injected, as the IndexInfoResolver is only relevant to
specific field(s).
- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry) DefaultIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry, SearchContextVisibilityChecker searchContextVisibilityChecker) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected OperandcreateOperand(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.protected SingleValueOperandcreateSingleValueOperandFromId(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).getAllIndexValuesForMatchingClauses(ApplicationUser searcher, ClauseNames jqlClauseNames, Query query) Retrieves the index values for the clauses in theSearchRequest.getAllNavigatorValuesForMatchingClauses(ApplicationUser searcher, ClauseNames jqlClauseNames, Query query) Retreives the navigator id values for the values in the clauses.getClauseForNavigatorValues(String clauseName, 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.
-
Constructor Details
-
DefaultIndexedInputHelper
public DefaultIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry) -
DefaultIndexedInputHelper
@Deprecated public DefaultIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry, SearchContextVisibilityChecker searchContextVisibilityChecker) Deprecated.
-
-
Method Details
-
getAllIndexValuesForMatchingClauses
public Set<String> getAllIndexValuesForMatchingClauses(ApplicationUser searcher, ClauseNames jqlClauseNames, Query query) Description copied from interface:IndexedInputHelperRetrieves the index values for the clauses in theSearchRequest. Function Operands are expanded to their values.- Specified by:
getAllIndexValuesForMatchingClausesin interfaceIndexedInputHelper- Parameters:
searcher- the user running the searchjqlClauseNames- the names of the clauses on which to retreive the values.query- the search criteria used to populate the field values holder.- Returns:
- a set of strings containing the index values of the clause values. Never null.
-
createOperand
Resolve this string representation of a navigator value (known not to be a field flag) into an operand to be used in a clause. Override this to provide domain-specific resolution (e.g. resolve version ids to names). Default implementation delegates tocreateSingleValueOperandFromId(java.lang.String)- 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.
-
createSingleValueOperandFromId
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).- 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.
-