Class ApogeePreviousYearsFieldsDAO
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.datasource.AbstractMyBatisDAO
org.ametys.plugins.odfsync.apogee.AbstractApogeeDAO
org.ametys.plugins.odfsync.apogee.ApogeePreviousYearsFieldsDAO
- All Implemented Interfaces:
LogEnabled
,PluginAware
,Component
,Configurable
,Contextualizable
,Serviceable
Data access object to the remote DB Apogee
-
Field Summary
FieldsFields inherited from class org.ametys.plugins.odfsync.apogee.AbstractApogeeDAO
DATASOURCE_REQUEST_ATTR
Fields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_manager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the number of groups in a course part for a given yearReturns the number of students in a container for a given yearMethods inherited from class org.ametys.plugins.odfsync.apogee.AbstractApogeeDAO
_configureDatasource, _executeSearch, _getDataSourceId, _getMyBatisConfiguration, _getRequest, _prepareSqlRequest, contextualize
Methods inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
configure, getSession, getSession, reload, service, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon ROLE
-
-
Constructor Details
-
ApogeePreviousYearsFieldsDAO
public ApogeePreviousYearsFieldsDAO()
-
-
Method Details
-
getNbStudentYear
public List<Map<String,Object>> getNbStudentYear(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns the number of students in a container for a given year- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the synchronizable collectionparams
- The parameters for search criteria: Program ID- Returns:
- The number of students in the container for the given year
-
getGroupsYear
public List<Map<String,Object>> getGroupsYear(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns the number of groups in a course part for a given year- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the synchronizable collectionparams
- The parameters for search criteria: Program ID- Returns:
- The number of groups in the course part for the given year
-