Class GetDatasources
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.datasourcesexplorer.GetDatasources
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class GetDatasources extends ServiceableAction
Generates the list of tables on the given datasource id
-
-
Field Summary
Fields Modifier and Type Field Description private DataSourceConsumerExtensionPoint
_dataSourceConsumerEP
private LDAPConnector
_ldapConnector
private LDAPDataSourceManager
_ldapDataSourceManager
private SQLDataSourceManager
_sqlDataSourceManager
-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description GetDatasources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Object
_datasources2JSON()
private Object
_ldapDatasource2JSON(String ldapDatasourcePath)
private Object
_sqlDatasource2JSON(String sqlDatasourceId)
Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
service(ServiceManager smanager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_sqlDataSourceManager
private SQLDataSourceManager _sqlDataSourceManager
-
_ldapDataSourceManager
private LDAPDataSourceManager _ldapDataSourceManager
-
_dataSourceConsumerEP
private DataSourceConsumerExtensionPoint _dataSourceConsumerEP
-
_ldapConnector
private LDAPConnector _ldapConnector
-
-
Constructor Detail
-
GetDatasources
public GetDatasources()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
_datasources2JSON
private Object _datasources2JSON()
-
_sqlDatasource2JSON
private Object _sqlDatasource2JSON(String sqlDatasourceId) throws ProcessingException
- Throws:
ProcessingException
-
_ldapDatasource2JSON
private Object _ldapDatasource2JSON(String ldapDatasourcePath) throws ProcessingException
- Throws:
ProcessingException
-
-