public interface QueryService
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
addQuery(String queryName,
String statement,
String language,
String userName)
Add new query by giving the following params : queryName, statement,
language, userName
|
void |
addSharedQuery(String queryName,
String statement,
String language,
String[] permissions,
boolean cachedResult)
Add new shared query by giving the following params: queryName, statement,
language, permissions, cachedResult
|
void |
addSharedQuery(String queryName,
String statement,
String language,
String[] permissions,
boolean cachedResult,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
Add new shared query by giving the following params: queryName, statement,
language, permissions, cachedResult, provider
|
javax.jcr.query.QueryResult |
execute(String queryPath,
String workspace,
org.exoplatform.services.jcr.ext.common.SessionProvider provider,
String userId)
Execute query by giving the following params : queryPath, workspace,
provider, userId
|
Set<String> |
getAllConfiguredQueries()
gets all configured queries
|
List<javax.jcr.query.Query> |
getQueries(String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
Get queries by giving the following params : userName, repository, provider
|
javax.jcr.query.Query |
getQuery(String queryPath,
String workspace,
org.exoplatform.services.jcr.ext.common.SessionProvider provider,
String userId)
Returns Query object by giving the following params : queryPath, workspace,
provider, userId
|
javax.jcr.query.Query |
getQueryByPath(String queryPath,
String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
Get query with path by giving the following params : queryPath, userName,
provider
|
String |
getRelativePath()
Get the relative path
|
List<javax.jcr.Node> |
getSharedQueries(org.exoplatform.services.jcr.ext.common.SessionProvider provider)
Get shared queries by giving the following params : provider
|
List<javax.jcr.Node> |
getSharedQueries(String userId,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
Get shared queries by giving the following params : userId, provider
|
List<javax.jcr.Node> |
getSharedQueries(String queryType,
String userId,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
Get shared queries by giving the following params : queryType, userId,
provider
|
javax.jcr.Node |
getSharedQuery(String queryName,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
Get shared queries by giving the following params : queryName, provider
|
void |
init()
Init all query plugin in the current repository
|
void |
removeQuery(String queryPath,
String userName)
Remove query by giving the following params : queryPath, userName
|
void |
removeSharedQuery(String queryName,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
Remove share query by giving the following params : queryName
|
static final String CACHE_NAME
String getRelativePath()
List<javax.jcr.query.Query> getQueries(String userName, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
userName - String Can be nullprovider - SessionProviderExceptionQuery,
SessionProviderjavax.jcr.query.QueryResult execute(String queryPath, String workspace, org.exoplatform.services.jcr.ext.common.SessionProvider provider, String userId) throws Exception
queryPath - String The path of queryworkspace - String The name of workspaceprovider - SessionProvideruserId - String The id of current userExceptionQueryResult,
SessionProvidervoid addQuery(String queryName, String statement, String language, String userName) throws Exception
queryName - String The name of querystatement - String The statement querylanguage - String The language is requesteduserName - String Can be nullExceptionvoid removeQuery(String queryPath, String userName) throws Exception
queryPath - String The path of queryuserName - String Can be nullExceptionvoid addSharedQuery(String queryName, String statement, String language, String[] permissions, boolean cachedResult) throws Exception
queryName - String The name of querystatement - String The statement querylanguage - String The language is requestedpermissions - String[]cachedResult - boolean Choosen for caching resultsExceptionvoid addSharedQuery(String queryName, String statement, String language, String[] permissions, boolean cachedResult, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
queryName - String The name of querystatement - String The statement querylanguage - String The language is requestedpermissions - String[]cachedResult - boolean Choosen for caching resultsprovider - Session providerExceptionjavax.jcr.Node getSharedQuery(String queryName, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
queryName - the name of queryprovider - SessionProviderExceptionNode,
SessionProvidervoid removeSharedQuery(String queryName, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
queryName - String The name of queryprovider - SessionProviderExceptionList<javax.jcr.Node> getSharedQueries(org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
provider - SessionProviderExceptionNode,
SessionProviderjavax.jcr.query.Query getQueryByPath(String queryPath, String userName, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
queryPath - String The path of queryuserName - String The name of current userprovider - SessionProviderExceptionNode,
Query,
SessionProviderList<javax.jcr.Node> getSharedQueries(String userId, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
userId - String The id of current userprovider - SessionProviderExceptionNode,
SessionProviderList<javax.jcr.Node> getSharedQueries(String queryType, String userId, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
queryType - String The type of queryuserId - String The id of current userprovider - SessionProviderExceptionNode,
SessionProvidervoid init() throws Exception
ExceptionQueryPluginjavax.jcr.query.Query getQuery(String queryPath, String workspace, org.exoplatform.services.jcr.ext.common.SessionProvider provider, String userId) throws Exception
queryPath - String The path of queryworkspace - String The name of workspaceprovider - SessionProvideruserId - String The id of current userExceptionQueryResult,
SessionProviderCopyright © 2003–2019 eXo Platform SAS. All rights reserved.