public interface QueryDao
Modifier and Type | Field and Description |
---|---|
static String |
ROLE
The avalon role name.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
addQuery(String siteName,
Map<String,Object> parameters)
Adds a query.
|
String |
addQuery(String siteName,
Query query)
Add a query and set its id.
|
Map<String,String> |
deleteQuery(String siteName,
String id)
Deletes a query.
|
Map<String,Query> |
getDataSourceQueries(String siteName,
String dataSourceId)
Get all the queries of a site.
|
Map<String,Query> |
getDataSourceQueries(String siteName,
String dataSourceId,
DataSourceClientInteraction.DataSourceType dataSourceType,
Query.ResultType resultType)
Get all the queries of a site of a specific result type
|
Map<String,Query> |
getDataSourceQueries(String siteName,
String dataSourceId,
Query.ResultType resultType)
Get all the queries of a site of a specific result type
|
Map<String,Query> |
getQueries(String siteName)
Get all the queries of a site.
|
Map<String,Query> |
getQueries(String siteName,
DataSourceClientInteraction.DataSourceType type)
Get all the queries of a site.
|
Query |
getQuery(String siteName,
String id)
Get a query from its id.
|
Map<String,Object> |
getQueryProperties(String id,
String siteName)
Get the query properties.
|
void |
removeQuery(String siteName,
String id)
Remove a query.
|
Map<String,String> |
updateQuery(String siteName,
Map<String,Object> parameters)
Updates a query.
|
void |
updateQuery(String siteName,
Query query)
Update a query.
|
Map<String,Query> getQueries(String siteName) throws DataInclusionException
siteName
- the site name.DataInclusionException
- if an error occurs while manipulating the data sourcesMap<String,Query> getQueries(String siteName, DataSourceClientInteraction.DataSourceType type) throws DataInclusionException
siteName
- the site name.type
- the query typeDataInclusionException
- if an error occurs while manipulating the data sourcesMap<String,Query> getDataSourceQueries(String siteName, String dataSourceId) throws DataInclusionException
siteName
- the site name.dataSourceId
- the id of the data sourceDataInclusionException
- if an error occurs while manipulating the data sourcesMap<String,Query> getDataSourceQueries(String siteName, String dataSourceId, Query.ResultType resultType) throws DataInclusionException
siteName
- the site name.dataSourceId
- the id of the data sourceresultType
- Filter on result typeDataInclusionException
- if an error occurs while manipulating the data sourcesMap<String,Query> getDataSourceQueries(String siteName, String dataSourceId, DataSourceClientInteraction.DataSourceType dataSourceType, Query.ResultType resultType) throws DataInclusionException
siteName
- the site name.dataSourceId
- the id of the data sourcedataSourceType
- the query typeresultType
- Filter on result typeDataInclusionException
- if an error occurs while manipulating the data sourcesQuery getQuery(String siteName, String id) throws DataInclusionException
siteName
- the site name.id
- the query id.DataInclusionException
- if an error occurs while manipulating the data sourcesMap<String,Object> getQueryProperties(String id, String siteName) throws DataInclusionException
id
- The query idsiteName
- The site nameDataInclusionException
- if an error occurs while manipulating the data sourcesMap<String,String> addQuery(String siteName, Map<String,Object> parameters) throws Exception
siteName
- The site nameparameters
- The params needed to create the queryException
- if an error occurs when adding the queryMap<String,String> updateQuery(String siteName, Map<String,Object> parameters) throws Exception
siteName
- The site nameparameters
- The params needed to update the queryException
- if an error occurs when updating the queryMap<String,String> deleteQuery(String siteName, String id) throws Exception
siteName
- the site nameid
- The id of the query to deleteException
- if an error occurs when deleting the queryString addQuery(String siteName, Query query) throws DataInclusionException
siteName
- the site namequery
- the query to add. The id member doesn't need to be specified.DataInclusionException
- if an error occurs while manipulating the data sourcesvoid updateQuery(String siteName, Query query) throws DataInclusionException
siteName
- the site namequery
- the query to update.DataInclusionException
- if an error occurs while manipulating the data sourcesvoid removeQuery(String siteName, String id) throws DataInclusionException
siteName
- the site nameid
- the query id.DataInclusionException
- if an error occurs while manipulating the data sources