Class CheckDataSourceAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.runtime.plugins.admin.datasource.CheckDataSourceAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class CheckDataSourceAction extends ServiceableAction
This action checks the validity of a data source's parameters
-
-
Field Summary
Fields Modifier and Type Field Description private static String
__SQL_DATASOURCE_CHECKER_ID
The id of the SQL data source checkerprivate I18nUtils
_i18nUtils
Utility methods helping the management of internationalizable textprivate JSONUtils
_jsonUtils
Helper component gathering utility methods for the management of JSON entitiesprivate LDAPDataSourceManager
_ldapDataSourceManager
The manager for SQL data sourceprivate SQLDatabaseTypeExtensionPoint
_sqlDatabaseTypeExtensionPoint
The extension point for SQL database typesprivate SQLDatabaseTypeManager
_sqlDatabaseTypeManager
The manager for SQL database typesprivate SQLDataSourceManager
_sqlDataSourceManager
The manager for SQL data source-
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 CheckDataSourceAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_checkLDAPParameters(List<Object> values)
private void
_checkSQLParameters(List<Object> values)
Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
service(ServiceManager serviceManager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
__SQL_DATASOURCE_CHECKER_ID
private static final String __SQL_DATASOURCE_CHECKER_ID
The id of the SQL data source checker- See Also:
- Constant Field Values
-
_sqlDataSourceManager
private SQLDataSourceManager _sqlDataSourceManager
The manager for SQL data source
-
_ldapDataSourceManager
private LDAPDataSourceManager _ldapDataSourceManager
The manager for SQL data source
-
_sqlDatabaseTypeManager
private SQLDatabaseTypeManager _sqlDatabaseTypeManager
The manager for SQL database types
-
_sqlDatabaseTypeExtensionPoint
private SQLDatabaseTypeExtensionPoint _sqlDatabaseTypeExtensionPoint
The extension point for SQL database types
-
_i18nUtils
private I18nUtils _i18nUtils
Utility methods helping the management of internationalizable text
-
_jsonUtils
private JSONUtils _jsonUtils
Helper component gathering utility methods for the management of JSON entities
-
-
Constructor Detail
-
CheckDataSourceAction
public CheckDataSourceAction()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) 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
-
_checkSQLParameters
private void _checkSQLParameters(List<Object> values) throws ItemCheckerTestFailureException
- Throws:
ItemCheckerTestFailureException
-
_checkLDAPParameters
private void _checkLDAPParameters(List<Object> values) throws ItemCheckerTestFailureException
- Throws:
ItemCheckerTestFailureException
-
-