public class DefaultQueryFactory extends Object implements QueryFactory
SearchQueryModuleDescriptor.
 
So the most common query types can have more readable seralized forms, any query type key that does not look like a plugin module complete key will be assumed to be a module in the "confluence.search.builtin" plugin. So, for example, looking up "inSpace" is the functional equivalent of looking up "confluence.search.builtin:inSpace".
| Constructor and Description | 
|---|
DefaultQueryFactory(com.atlassian.plugin.PluginAccessor pluginAccessor)
Construct a new query factory 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SearchQuery | 
newQuery(String queryKey)
Generate a SearchQuery without parameters 
 | 
SearchQuery | 
newQuery(String queryKey,
        List parameters)
Generate a SearchQuery with parameters. 
 | 
public DefaultQueryFactory(com.atlassian.plugin.PluginAccessor pluginAccessor)
pluginAccessor - the PluginAccessor to retrieve query modules from.public SearchQuery newQuery(String queryKey) throws InvalidQueryException
QueryFactorynewQuery in interface QueryFactoryqueryKey - the key for that query typeInvalidQueryException - if no query can be found for that key, or a query can be found but it can
                               not be constructed with no parameters.QueryFactory.newQuery(String)public SearchQuery newQuery(String queryKey, List parameters) throws InvalidQueryException
QueryFactorynewQuery in interface QueryFactoryqueryKey - the key for that query typeparameters - the parameters for that queryInvalidQueryException - 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.QueryFactory.newQuery(String, List)Copyright © 2003–2022 Atlassian. All rights reserved.