@NonInjectableComponent public class DefaultIndexedInputHelper<T> extends Object implements IndexedInputHelper
IndexedInputHelper
.
This class should be constructed as needed and not injected, as the IndexInfoResolver
is only relevant to
specific field(s).
Constructor and Description |
---|
DefaultIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver,
JqlOperandResolver operandResolver,
FieldFlagOperandRegistry fieldFlagOperandRegistry) |
DefaultIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver,
JqlOperandResolver operandResolver,
FieldFlagOperandRegistry fieldFlagOperandRegistry,
SearchContextVisibilityChecker searchContextVisibilityChecker)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Operand |
createOperand(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 SingleValueOperand |
createSingleValueOperandFromId(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).
|
Set<String> |
getAllIndexValuesForMatchingClauses(ApplicationUser searcher,
ClauseNames jqlClauseNames,
Query query)
Retrieves the index values for the clauses in the
SearchRequest . |
Set<String> |
getAllIndexValuesForMatchingClauses(ApplicationUser searcher,
ClauseNames jqlClauseNames,
Query query,
SearchContext searchContext)
Retrieves the index values for the clauses in the
SearchRequest . |
Set<String> |
getAllNavigatorValuesForMatchingClauses(ApplicationUser searcher,
ClauseNames jqlClauseNames,
Query query)
Retreives the navigator id values for the values in the clauses.
|
Set<String> |
getAllNavigatorValuesForMatchingClauses(ApplicationUser searcher,
ClauseNames jqlClauseNames,
Query query,
SearchContext searchContext)
Retreives the navigator id values for the values in the clauses.
|
Clause |
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.
|
public DefaultIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry)
@Deprecated public DefaultIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry, SearchContextVisibilityChecker searchContextVisibilityChecker)
public Set<String> getAllIndexValuesForMatchingClauses(ApplicationUser searcher, ClauseNames jqlClauseNames, Query query, SearchContext searchContext)
IndexedInputHelper
SearchRequest
. Function Operands are expanded to their
values.getAllIndexValuesForMatchingClauses
in interface IndexedInputHelper
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.searchContext
- the context under which the search is being performedpublic Set<String> getAllIndexValuesForMatchingClauses(ApplicationUser searcher, ClauseNames jqlClauseNames, Query query)
IndexedInputHelper
SearchRequest
. Function Operands are expanded to their
values.getAllIndexValuesForMatchingClauses
in interface IndexedInputHelper
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.public Set<String> getAllNavigatorValuesForMatchingClauses(ApplicationUser searcher, ClauseNames jqlClauseNames, Query query, SearchContext searchContext)
IndexedInputHelper
getAllNavigatorValuesForMatchingClauses
in interface IndexedInputHelper
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.searchContext
- the context under which the search is being performedpublic Set<String> getAllNavigatorValuesForMatchingClauses(ApplicationUser searcher, ClauseNames jqlClauseNames, Query query)
IndexedInputHelper
getAllNavigatorValuesForMatchingClauses
in interface IndexedInputHelper
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.public Clause getClauseForNavigatorValues(String clauseName, Set<String> values)
IndexedInputHelper
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.
getClauseForNavigatorValues
in interface IndexedInputHelper
clauseName
- the name of the clause to generatevalues
- a set of Navigator value strings; may contain flag values. May not be null.protected Operand createOperand(String stringValue)
createSingleValueOperandFromId(java.lang.String)
stringValue
- the navigator value as a string e.g. 123
protected SingleValueOperand createSingleValueOperandFromId(String stringValue)
stringValue
- the navigator value as a string e.g. 123
Copyright © 2002-2023 Atlassian. All Rights Reserved.