Class SQLUserSearchDAO
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.datasource.AbstractMyBatisDAO
-
- org.ametys.plugins.userdirectory.synchronize.SQLUserSearchDAO
-
- All Implemented Interfaces:
LogEnabled
,PluginAware
,Component
,Configurable
,Contextualizable
,Serviceable
public class SQLUserSearchDAO extends AbstractMyBatisDAO
DAO forSQLSynchronizableUDOrgunitCollection
s which need to access a SQL database
-
-
Field Summary
Fields Modifier and Type Field Description protected String
_dataSourceId
The datesource idstatic String
ROLE
Avalon ROLE-
Fields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_manager
-
-
Constructor Summary
Constructors Constructor Description SQLUserSearchDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_configureDatasource(Configuration configuration)
Configure datasourceprotected String
_getDataSourceId()
Get datasource idprotected void
_setDataSourceId(String dataSourceId)
Set the datasource idList<Map<String,Object>>
searchUser(Map<String,Object> params, String dataSourceId)
Get the list of synchronized content-
Methods inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_getMyBatisConfiguration, configure, contextualize, getSession, getSession, reload, service, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_dataSourceId
protected String _dataSourceId
The datesource id
-
-
Constructor Detail
-
SQLUserSearchDAO
public SQLUserSearchDAO()
-
-
Method Detail
-
searchUser
public List<Map<String,Object>> searchUser(Map<String,Object> params, String dataSourceId)
Get the list of synchronized content- Parameters:
params
- the filter paramatersdataSourceId
- the datasource ID- Returns:
- the list of synchronized content
-
_configureDatasource
protected void _configureDatasource(Configuration configuration) throws ConfigurationException
Description copied from class:AbstractMyBatisDAO
Configure datasource- Overrides:
_configureDatasource
in classAbstractMyBatisDAO
- Parameters:
configuration
- the configuration- Throws:
ConfigurationException
- if an error occurred
-
_getDataSourceId
protected String _getDataSourceId()
Description copied from class:AbstractMyBatisDAO
Get datasource id- Overrides:
_getDataSourceId
in classAbstractMyBatisDAO
- Returns:
- the datasource id
-
_setDataSourceId
protected void _setDataSourceId(String dataSourceId)
Set the datasource id- Parameters:
dataSourceId
- the datasource id
-
-