|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.search.searchers.util.DefaultIndexedInputHelper<T>
@NonInjectableComponent public class DefaultIndexedInputHelper<T>
The default implementation for the IndexedInputHelper
.
IndexInfoResolver
is only relevant to
specific field(s).
Constructor Summary | |
---|---|
DefaultIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver,
JqlOperandResolver operandResolver,
FieldFlagOperandRegistry fieldFlagOperandRegistry,
SearchContextVisibilityChecker searchContextVisibilityChecker)
|
Method Summary | |
---|---|
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. |
Set<String> |
getAllIndexValuesForMatchingClauses(com.atlassian.crowd.embedded.api.User searcher,
ClauseNames jqlClauseNames,
Query query,
SearchContext searchContext)
Retrieves the index values for the clauses in the SearchRequest . |
Set<String> |
getAllNavigatorValuesForMatchingClauses(com.atlassian.crowd.embedded.api.User 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIndexedInputHelper(IndexInfoResolver<T> indexInfoResolver, JqlOperandResolver operandResolver, FieldFlagOperandRegistry fieldFlagOperandRegistry, SearchContextVisibilityChecker searchContextVisibilityChecker)
Method Detail |
---|
public Set<String> getAllIndexValuesForMatchingClauses(com.atlassian.crowd.embedded.api.User 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 performed
public Set<String> getAllNavigatorValuesForMatchingClauses(com.atlassian.crowd.embedded.api.User 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 performed
public Clause getClauseForNavigatorValues(String clauseName, Set<String> values)
IndexedInputHelper
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 SingleValueOperand createSingleValueOperandFromId(String stringValue)
stringValue
- the navigator value as a string e.g. 123
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |