public class GetDataSourceQueriesAction extends ServiceableAction
| Modifier and Type | Field and Description |
|---|---|
protected DataSourceClientInteraction |
_dataSourceClientInteraction
The manager handling the data sources
|
protected DataSourceFactoryExtensionPoint |
_dataSourceFactoryEP
The manager for data source factories
|
protected QueryDao |
_queryDao
The Query DAO.
|
managerEMPTY_MAP| Constructor and Description |
|---|
GetDataSourceQueriesAction() |
| Modifier and Type | Method and Description |
|---|---|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected Map<String,Object> |
dataSourceTypeToJSON(DataSourceClientInteraction.DataSourceType dataSourceType)
Get the JSON representation of a type of data source
|
protected Map<String,Object> |
queryToJSON(Query query)
Gets query's properties to JSON format
|
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected DataSourceClientInteraction _dataSourceClientInteraction
protected DataSourceFactoryExtensionPoint _dataSourceFactoryEP
public GetDataSourceQueriesAction()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class ServiceableActionServiceExceptionpublic Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exceptionprotected Map<String,Object> dataSourceTypeToJSON(DataSourceClientInteraction.DataSourceType dataSourceType) throws Exception
dataSourceType - The data source type IDException - If an error occurredprotected Map<String,Object> queryToJSON(Query query)
query - The query