@InjectableComponent public interface QueryCache
The cache is indexed with Query ApplicationUser pairs.
| Modifier and Type | Method and Description |
|---|---|
Collection<ClauseHandler> |
getClauseHandlers(ApplicationUser searcher,
String jqlClauseName)
Retrieve the collection of
ClauseHandlers registered
for the ApplicationUser jqlClauseName pair. |
Boolean |
getDoesQueryFitFilterFormCache(ApplicationUser searcher,
Query query)
Retrieve the result of the last doesQueryFitFiterForm operation in the current thread.
|
QueryContext |
getQueryContextCache(ApplicationUser searcher,
Query query)
Retrieve the result of the last getQueryContext operation in the current thread
for the
ApplicationUser Query pair. |
QueryContext |
getSimpleQueryContextCache(ApplicationUser searcher,
Query query)
Retrieve the result of the last getSimpleQueryContext operation in the current thread
for the
ApplicationUser Query pair. |
List<QueryLiteral> |
getValues(QueryCreationContext context,
Operand operand,
TerminalClause jqlClause)
Retrieve the list of
QueryLiterals registered
for the QueryCreationContext Operand jqlClause triplet. |
void |
setClauseHandlers(ApplicationUser searcher,
String jqlClauseName,
Collection<ClauseHandler> clauseHandlers)
Set the cached result of a getSimpleQueryContext operation on the
ApplicationUser Query pair. |
void |
setDoesQueryFitFilterFormCache(ApplicationUser searcher,
Query query,
boolean doesItFit)
Set the cached result of a doesQueryFitFiterForm operation on the
ApplicationUser Query pair. |
void |
setQueryContextCache(ApplicationUser searcher,
Query query,
QueryContext queryContext)
Set the cached result of a getQueryContext operation on the
ApplicationUser Query pair. |
void |
setSimpleQueryContextCache(ApplicationUser searcher,
Query query,
QueryContext queryContext)
Set the cached result of a getSimpleQueryContext operation on the
ApplicationUser Query pair. |
void |
setValues(QueryCreationContext context,
Operand operand,
TerminalClause jqlClause,
List<QueryLiteral> values)
Set the cached result of a getValues operation on the
for the
QueryCreationContext Operand jqlClause triplet. |
Boolean getDoesQueryFitFilterFormCache(ApplicationUser searcher, Query query)
ApplicationUser Query pair.searcher - the user who is performing the searchquery - the query for which to find the result for; cannot be null.ApplicationUser Query pair in the current thread, or null if
the operation has yet to be performed.void setDoesQueryFitFilterFormCache(ApplicationUser searcher, Query query, boolean doesItFit)
ApplicationUser Query pair. The cache result
is only held for the current thread.searcher - the user who is performing the searchquery - the query for which to store the result under; cannot be nulldoesItFit - the result of a doesSearchRequestFitNavigator operation for the.
ApplicationUser QueryQueryContext getQueryContextCache(ApplicationUser searcher, Query query)
ApplicationUser Query pair.searcher - the user who is performing the searchquery - the query for which to find the result for; cannot be null.ApplicationUser Query pair in the current thread, or null if
the operation has yet to be performed.void setQueryContextCache(ApplicationUser searcher, Query query, QueryContext queryContext)
ApplicationUser Query pair. The cache result
is only held for the current thread.searcher - the user who is performing the searchquery - the query for which to store the result under; cannot be null.queryContext - the queryContext result to store
ApplicationUser QueryQueryContext getSimpleQueryContextCache(ApplicationUser searcher, Query query)
ApplicationUser Query pair.searcher - the user who is performing the searchquery - the query for which to find the result for; cannot be null.ApplicationUser Query pair in the current thread, or null if
the operation has yet to be performed.void setSimpleQueryContextCache(ApplicationUser searcher, Query query, QueryContext queryContext)
ApplicationUser Query pair. The cache result
is only held for the current thread.searcher - the user who is performing the searchquery - the query for which to store the result under; cannot be null.queryContext - the querySimpleContext result to store
ApplicationUser QueryCollection<ClauseHandler> getClauseHandlers(ApplicationUser searcher, String jqlClauseName)
ClauseHandlers registered
for the ApplicationUser jqlClauseName pair.searcher - the user who is performing the searchjqlClauseName - the jQLClauseName for which to find the result for; cannot be null.ClauseHandlers registered
for the ApplicationUser jqlClauseName pair.void setClauseHandlers(ApplicationUser searcher, String jqlClauseName, Collection<ClauseHandler> clauseHandlers)
ApplicationUser Query pair. The cache result
is only held for the current thread.searcher - the user who is performing the searchjqlClauseName - the jQLClauseName for which to store the result under; cannot be null.clauseHandlers - the collection of ClauseHandlers
ApplicationUser ClauseHandlerList<QueryLiteral> getValues(QueryCreationContext context, Operand operand, TerminalClause jqlClause)
QueryLiterals registered
for the QueryCreationContext Operand jqlClause triplet.context - the query context of the search, which cannot be null.operand - the Operand which cannot be nulljqlClause - the jQLClause for which to find the result for; cannot be null.QueryLiterals registered
for the QueryCreationContext jqlClause pair.void setValues(QueryCreationContext context, Operand operand, TerminalClause jqlClause, List<QueryLiteral> values)
QueryCreationContext Operand jqlClause triplet. The cache result
is only held for the current thread.context - the query context the search is being performed inoperand - the Operand which cannot be nulljqlClause - the jQLClause for which to store the result under; cannot be null.values - the collection of QueryLiteralsCopyright © 2002-2022 Atlassian. All Rights Reserved.