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.
-
-
Field Summary
Fields Modifier and Type Field Description protected CostComputationComponent
_costComputationComponent
The cost computation componentprotected CourseExporter
_courseExporter
The exporter of coursesprotected HierarchyExporter
_hierarchyExporter
The exporter of hierarchyprotected ODFHelper
_odfHelper
The ODF helperprotected ProgramPartExporter
_programElementExporter
The exporter of program elementsprotected StepExporter
_stepExporter
The exporter of steps
-
Constructor Summary
Constructors Constructor Description ODFExport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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 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
-
_costComputationComponent
protected CostComputationComponent _costComputationComponent
The cost computation component
-
-
Constructor Detail
-
ODFExport
public ODFExport()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initializeDb
public List<ParameterizableQuery> 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
protected List<ParameterizableQuery> _populate(String ametysCatalog, Long oseCatalog)
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
-
-