|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InjectableComponent public interface QueryCache
The query cache is a request level cache that stores the result of expensive query operations. The cache is indexed with Query User pairs.
| Method Summary | |
|---|---|
Collection<ClauseHandler> |
getClauseHandlers(com.atlassian.crowd.embedded.api.User searcher,
String jqlClauseName)
Retrieve the collection of ClauseHandlers registered
for the User jqlClauseName pair. |
Boolean |
getDoesQueryFitFilterFormCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
Retrieve the result of the last doesQueryFitFiterForm operation in the current thread. |
QueryContext |
getQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
Retrieve the result of the last getQueryContext operation in the current thread for the User Query pair. |
QueryContext |
getSimpleQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
Retrieve the result of the last getSimpleQueryContext operation in the current thread for the User Query pair. |
void |
setClauseHandlers(com.atlassian.crowd.embedded.api.User searcher,
String jqlClauseName,
Collection<ClauseHandler> clauseHandlers)
Set the cached result of a getSimpleQueryContext operation on the User Query pair. |
void |
setDoesQueryFitFilterFormCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
boolean doesItFit)
Set the cached result of a doesQueryFitFiterForm operation on the User Query pair. |
void |
setQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
QueryContext queryContext)
Set the cached result of a getQueryContext operation on the User Query pair. |
void |
setSimpleQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
QueryContext queryContext)
Set the cached result of a getSimpleQueryContext operation on the User Query pair. |
| Method Detail |
|---|
Boolean getDoesQueryFitFilterFormCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
User Query pair.
searcher - the user who is performing the searchquery - the query for which to find the result for; cannot be null.
User Query pair in the current thread, or null if
the operation has yet to be performed.
void setDoesQueryFitFilterFormCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
boolean doesItFit)
User 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.
User Query
QueryContext getQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
User Query pair.
searcher - the user who is performing the searchquery - the query for which to find the result for; cannot be null.
User Query pair in the current thread, or null if
the operation has yet to be performed.
void setQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
QueryContext queryContext)
User 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
User Query
QueryContext getSimpleQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query)
User Query pair.
searcher - the user who is performing the searchquery - the query for which to find the result for; cannot be null.
User Query pair in the current thread, or null if
the operation has yet to be performed.
void setSimpleQueryContextCache(com.atlassian.crowd.embedded.api.User searcher,
Query query,
QueryContext queryContext)
User 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
User Query
Collection<ClauseHandler> getClauseHandlers(com.atlassian.crowd.embedded.api.User searcher,
String jqlClauseName)
ClauseHandlers registered
for the User 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 User jqlClauseName pair.
void setClauseHandlers(com.atlassian.crowd.embedded.api.User searcher,
String jqlClauseName,
Collection<ClauseHandler> clauseHandlers)
User 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
User ClauseHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||