Class CourseExporter
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.ose.export.impl.odf.AbstractProgramElementExporter<Course>
org.ametys.odf.ose.export.impl.odf.CourseExporter
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
Exporter of courses.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.odf.ose.export.impl.odf.AbstractProgramElementExporter
AbstractProgramElementExporter.ProgramElementData
-
Field Summary
Modifier and TypeFieldDescriptionprotected OdfReferenceTableHelper
The ODF enumeration helperstatic final String
Avalon RoleFields inherited from class org.ametys.odf.ose.export.impl.odf.AbstractProgramElementExporter
_elementRetriever
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<ParameterizableQuery>
_getQueries
(Course programElement, AbstractProgramElementExporter.ProgramElementData data, Long oseCatalog, CostComputationData costData) Get the queries to create the program element in the OSE database.void
service
(ServiceManager manager) Methods inherited from class org.ametys.odf.ose.export.impl.odf.AbstractProgramElementExporter
getQueries
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role -
_refTableHelper
The ODF enumeration helper
-
-
Constructor Details
-
CourseExporter
public CourseExporter()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractProgramElementExporter<Course>
- Throws:
ServiceException
-
_getQueries
protected List<ParameterizableQuery> _getQueries(Course programElement, AbstractProgramElementExporter.ProgramElementData data, Long oseCatalog, CostComputationData costData) Description copied from class:AbstractProgramElementExporter
Get the queries to create the program element in the OSE database.- Specified by:
_getQueries
in classAbstractProgramElementExporter<Course>
- Parameters:
programElement
- The program elementdata
- The calculated data attached to the program elementoseCatalog
- The OSE catalogcostData
- the result of cost computation of the catalog- Returns:
- The list of queries
-