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
public class NatureEnseignementExport extends AbstractOSEExport implements 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
Fields Modifier and Type Field Description private static String__TABLE_NAMEThe name for the ETAPE tableprotected OdfReferenceTableHelper_refTableHelperThe ODF enumeration helper
-
Constructor Summary
Constructors Constructor Description NatureEnseignementExport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ParameterizableQuery_deleteOldData()private List<ParameterizableQuery>_getInsertQueries()private ParameterizableQuery_getInsertQuery(OdfReferenceTableEntry enseignementNature, AtomicInteger order, String lang)private Long_orderFromCategory(OdfReferenceTableEntry referenceTableEntry)protected List<ParameterizableQuery>_populate(String ametysCatalog, Long oseCatalog)Populate the Ametys table(s) with the values from Ametys.List<ParameterizableQuery>initializeDb()Initialize the database by dropping old Ametys tables and source views and activate import on the OSE tables.voidservice(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 Detail
-
__TABLE_NAME
private static final String __TABLE_NAME
The name for the ETAPE table- See Also:
- Constant Field Values
-
_refTableHelper
protected OdfReferenceTableHelper _refTableHelper
The ODF enumeration helper
-
-
Constructor Detail
-
NatureEnseignementExport
public NatureEnseignementExport()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
initializeDb
public List<ParameterizableQuery> initializeDb()
Description copied from interface:OSEExportInitialize the database by dropping old Ametys tables and source views and activate import on the OSE tables.- Specified by:
initializeDbin interfaceOSEExport- Returns:
- A
Listof queries
-
_populate
protected List<ParameterizableQuery> _populate(String ametysCatalog, Long oseCatalog)
Description copied from class:AbstractOSEExportPopulate the Ametys table(s) with the values from Ametys.- Specified by:
_populatein classAbstractOSEExport- Parameters:
ametysCatalog- The Ametys catalog to filter data.oseCatalog- The OSE catalog to insert into the right year.- Returns:
- A
Listof queries
-
_orderFromCategory
private Long _orderFromCategory(OdfReferenceTableEntry referenceTableEntry)
-
_deleteOldData
private ParameterizableQuery _deleteOldData()
-
_getInsertQueries
private List<ParameterizableQuery> _getInsertQueries()
-
_getInsertQuery
private ParameterizableQuery _getInsertQuery(OdfReferenceTableEntry enseignementNature, AtomicInteger order, String lang)
-
-