Class GetDataSourceQueriesAction
- java.lang.Object
- 
- org.apache.avalon.framework.logger.AbstractLogEnabled
- 
- org.apache.cocoon.acting.AbstractAction
- 
- org.apache.cocoon.acting.ServiceableAction
- 
- org.ametys.plugins.externaldata.ui.GetDataSourceQueriesAction
 
 
 
 
- 
- All Implemented Interfaces:
- Component,- LogEnabled,- Serviceable,- Action
 
 public class GetDataSourceQueriesAction extends ServiceableAction SAX events for datasources types, datasources and queries
- 
- 
Field SummaryFields Modifier and Type Field Description protected DataSourceClientInteraction_dataSourceClientInteractionThe manager handling the data sourcesprotected DataSourceFactoryExtensionPoint_dataSourceFactoryEPThe manager for data source factoriesprotected QueryDao_queryDaoThe Query DAO.- 
Fields inherited from class org.apache.cocoon.acting.ServiceableActionmanager
 - 
Fields inherited from class org.apache.cocoon.acting.AbstractActionEMPTY_MAP
 
- 
 - 
Constructor SummaryConstructors Constructor Description GetDataSourceQueriesAction()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Mapact(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 sourceprotected Map<String,Object>queryToJSON(Query query)Gets query's properties to JSON formatvoidservice(ServiceManager smanager)- 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabledenableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
- 
 
- 
- 
- 
Field Detail- 
_dataSourceClientInteractionprotected DataSourceClientInteraction _dataSourceClientInteraction The manager handling the data sources
 - 
_dataSourceFactoryEPprotected DataSourceFactoryExtensionPoint _dataSourceFactoryEP The manager for data source factories
 
- 
 - 
Constructor Detail- 
GetDataSourceQueriesActionpublic GetDataSourceQueriesAction() 
 
- 
 - 
Method Detail- 
servicepublic void service(ServiceManager smanager) throws ServiceException - Specified by:
- servicein interface- Serviceable
- Overrides:
- servicein class- ServiceableAction
- Throws:
- ServiceException
 
 - 
actpublic Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
- Exception
 
 - 
dataSourceTypeToJSONprotected Map<String,Object> dataSourceTypeToJSON(DataSourceClientInteraction.DataSourceType dataSourceType) throws Exception Get the JSON representation of a type of data source- Parameters:
- dataSourceType- The data source type ID
- Returns:
- The datasource type as JSON
- Throws:
- Exception- If an error occurred
 
 - 
queryToJSONprotected Map<String,Object> queryToJSON(Query query) Gets query's properties to JSON format- Parameters:
- query- The query
- Returns:
- The query's properties
 
 
- 
 
-