Class ApogeeDAO
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.ApogeeDAO
- 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 add elements (rich texts) to a programReturns the domains to a programReturns form of teaching linked to a programReturns joint org units linked to a programReturns Apogee containers matching the search criteriaReturns the Apogee course lists matching the search criteriaReturns the course parts (hours) to a courseReturns the Apogee educational elements matching the search criteriaReturns Apogee organizational units matching the search criteriaReturns Apogee programs matching the search criteriaReturns Apogee subprograms matching the search criteriaMethods 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
-
ApogeeDAO
public ApogeeDAO()
-
-
Method Details
-
searchPrograms
public List<Map<String,Object>> searchPrograms(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns Apogee programs matching the search criteria- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the Apogee synchronizable collectionparams
- The parameters for search criteria: DIP code, VDI code, title- Returns:
- the list Apogee course lists matching the search criteria
-
getJointOrgUnits
public List<Map<String,Object>> getJointOrgUnits(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns joint org units linked to a program- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the Apogee synchronizable collectionparams
- The parameters for search criteria: Program ID- Returns:
- The list of Apogee joint org units matching the program
-
getFormOfTeachingOrg
public List<Map<String,Object>> getFormOfTeachingOrg(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns form of teaching linked to a program- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the Apogee synchronizable collectionparams
- The parameters for search criteria: Program ID- Returns:
- The list of Apogee form of teaching matching the program
-
getAddElements
public List<Map<String,Object>> getAddElements(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns the add elements (rich texts) to a program- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the Apogee synchronizable collectionparams
- The parameters for search criteria: Program ID- Returns:
- The list of Apogee add elements matching the program
-
getDomains
public List<Map<String,Object>> getDomains(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns the domains to a program- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the Apogee synchronizable collectionparams
- The parameters for search criteria: Program ID- Returns:
- The list of Apogee domains matching the program
-
searchOrgUnits
public List<Map<String,Object>> searchOrgUnits(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns Apogee organizational units matching the search criteria- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the Apogee synchronizable collectionparams
- The parameters for search criteria: cod_cmp, cod_tpc, title- Returns:
- The list of Apogee organizational units matching the search criteria
-
searchContainers
public List<Map<String,Object>> searchContainers(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns Apogee containers matching the search criteria- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the Apogee synchronizable collectionparams
- The parameters for search criteria: code, type, title- Returns:
- The list of Apogee containers matching the search criteria
-
searchSubPrograms
public List<Map<String,Object>> searchSubPrograms(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns Apogee subprograms matching the search criteria- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the Apogee synchronizable collectionparams
- The parameters for search criteria: "dip", "vdi", "vdi-ter", "etp-code", "vet-code", "vet-title"- Returns:
- The list of Apogee subprograms matching the search criteria
-
searchCourses
public List<Map<String,Object>> searchCourses(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns the Apogee educational elements matching the search criteria- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the Apogee synchronizable collectionparams
- The parameters for search criteria: ELP code (code), ELP type (type), title (title)- Returns:
- the list of Apogee educational elements matching the search criteria
-
searchCourseParts
public List<Map<String,Object>> searchCourseParts(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns the course parts (hours) to a course- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the Apogee synchronizable collectionparams
- The parameters for search criteria: Course ID- Returns:
- The list of Apogee course parts matching the course
-
searchCourseLists
public List<Map<String,Object>> searchCourseLists(String dataSourceId, Map<String, Object> sccParams, Map<String, Object> params) Returns the Apogee course lists matching the search criteria- Parameters:
dataSourceId
- The id of data source. Can not be null.sccParams
- the parameters values of the Apogee synchronizable collectionparams
- The parameters for search criteria: ELP code (code), NEL code (cod_nel), title (title)- Returns:
- the list Apogee course lists matching the search criteria
-