Package org.ametys.odf.ose.export.impl
Class ODFExport
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.odf.ose.export.AbstractOSEExport
-
- org.ametys.odf.ose.export.impl.ODFExport
-
- All Implemented Interfaces:
OSEExport,LogEnabled,Serviceable
public class ODFExport extends AbstractOSEExport implements Serviceable
This exports ODF values to the OSE database by SRC_* views.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classODFExport.Populator
-
Field Summary
Fields Modifier and Type Field Description protected CourseExporter_courseExporterThe exporter of coursesprotected HierarchyExporter_hierarchyExporterThe exporter of hierarchyprotected ODFHelper_odfHelperThe ODF helperprotected ProgramPartExporter_programElementExporterThe exporter of program elementsprotected StepExporter_stepExporterThe exporter of steps
-
Constructor Summary
Constructors Constructor Description ODFExport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private List<ParameterizableQuery>_deleteOldData()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
-
_stepExporter
protected StepExporter _stepExporter
The exporter of steps
-
_courseExporter
protected CourseExporter _courseExporter
The exporter of courses
-
_programElementExporter
protected ProgramPartExporter _programElementExporter
The exporter of program elements
-
_hierarchyExporter
protected HierarchyExporter _hierarchyExporter
The exporter of hierarchy
-
_odfHelper
protected ODFHelper _odfHelper
The ODF helper
-
-
Constructor Detail
-
ODFExport
public ODFExport()
-
-
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
-
_deleteOldData
private List<ParameterizableQuery> _deleteOldData()
-
-