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
DAO for
SQLSynchronizableUDOrgunitCollections which need to access a SQL database-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe datesource idstatic final StringAvalon ROLEFields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_configureDatasource(Configuration configuration) Configure datasourceprotected StringGet datasource idprotected void_setDataSourceId(String dataSourceId) Set the datasource idsearchUser(Map<String, Object> params, String dataSourceId) Get the list of synchronized contentMethods inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_getMyBatisConfiguration, configure, contextualize, getSession, getSession, reload, service, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon ROLE -
_dataSourceId
The datesource id
-
-
Constructor Details
-
SQLUserSearchDAO
public SQLUserSearchDAO()
-
-
Method Details
-
searchUser
Get the list of synchronized content- Parameters:
params- the filter paramatersdataSourceId- the datasource ID- Returns:
- the list of synchronized content
-
_configureDatasource
Description copied from class:AbstractMyBatisDAOConfigure datasource- Overrides:
_configureDatasourcein classAbstractMyBatisDAO- Parameters:
configuration- the configuration- Throws:
ConfigurationException- if an error occurred
-
_getDataSourceId
Description copied from class:AbstractMyBatisDAOGet datasource id- Overrides:
_getDataSourceIdin classAbstractMyBatisDAO- Returns:
- the datasource id
-
_setDataSourceId
Set the datasource id- Parameters:
dataSourceId- the datasource id
-