Package org.ametys.odf.ose.export.impl
Class NatureEnseignementExport
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.ose.export.AbstractOSEExport
org.ametys.odf.ose.export.impl.NatureEnseignementExport
- All Implemented Interfaces:
OSEExport
,LogEnabled
,Serviceable
This exports natures like CM, TD, TP to the TYPE_INTERVENTION table.
It's a one-shot operation, it's done in the initialization because it's not synchronizable data.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<ParameterizableQuery>
Populate the Ametys table(s) with the values from Ametys.Initialize the database by dropping old Ametys tables and source views and activate import on the OSE tables.void
service
(ServiceManager manager) Methods inherited from class org.ametys.odf.ose.export.AbstractOSEExport
populate
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_refTableHelper
The ODF enumeration helper
-
-
Constructor Details
-
NatureEnseignementExport
public NatureEnseignementExport()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initializeDb
Description copied from interface:OSEExport
Initialize the database by dropping old Ametys tables and source views and activate import on the OSE tables.- Specified by:
initializeDb
in interfaceOSEExport
- Returns:
- A
List
of queries
-
_populate
Description copied from class:AbstractOSEExport
Populate the Ametys table(s) with the values from Ametys.- Specified by:
_populate
in classAbstractOSEExport
- Parameters:
ametysCatalog
- The Ametys catalog to filter data.oseCatalog
- The OSE catalog to insert into the right year.- Returns:
- A
List
of queries
-