com.atlassian.confluence.search.v2.QueryFactory |
Known Indirect Subclasses
DefaultQueryFactory |
A default implementation of QueryFactory that maps query type keys to plugin module complete keys. |
|
Class Overview
Used by the query deserializer to map between key/parameters and SearchQuery
objects.
Public Methods
Generate a SearchQuery without parameters
Parameters
queryKey
| the key for that query type |
Returns
- the appropriate SearchQuery object
Throws
InvalidQueryException
| if no query can be found for that key, or a query can be found but it can
not be constructed with no parameters.
|
Generate a SearchQuery with parameters. Parameters must be either String or SearchQuery instances.
Parameters
queryKey
| the key for that query type |
parameters
| the parameters for that query |
Returns
- the appropriate SearchQuery object
Throws
InvalidQueryException
| if no query can be found for that key, or a query can be found but it can
not be constructed with the given parameters.
|