Package org.ametys.odf.cdmfr
Class AmetysCDMfrExtension
java.lang.Object
org.ametys.odf.cdmfr.AbstractCDMfrExtension
org.ametys.odf.cdmfr.AmetysCDMfrExtension
- All Implemented Interfaces:
CDMfrExtension
,Serviceable
base CDMfr extension for Ametys
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_coursePart2CDM
(ContentHandler contentHandler, CoursePart coursePart) Sax aCoursePart
with the following structure : <ametys-cdm:coursePart @ametys-cdm:code="code"> <ametys-cdm:title>Title</ametys-cdm:title> <ametys-cdm:nature>Nature CDM-fr value or code</ametys-cdm:nature> <ametys-cdm:nbHours>Number of hours</ametys-cdm:nbHours> <ametys-cdm:courseHolder>CDM ID of the course holder</ametys-cdm:courseHolder> </ametys-cdm:coursePart>void
abstractProgram2CDM
(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program, Set<String> persons, Set<String> orgUnits) Send the content of an user defined ametys extension to be included in the CDM-fr representation the abstract program.void
container2CDM
(ContentHandler contentHandler, Container container, Set<String> persons, Set<String> orgUnits) Send the content of an user defined ametys extension to be included in the CDM-fr representation the container.void
course2CDM
(ContentHandler contentHandler, Course course, Set<String> persons, Set<String> orgUnits) Send the content of an user defined ametys extension to be included in the CDM-fr representation the course.void
orgunit2CDM
(ContentHandler contentHandler, OrgUnit orgunit) Send the content of an user defined ametys extension to be included in the CDM-fr representation the orgunit.void
person2CDM
(ContentHandler contentHandler, Person person) Send the content of an user defined ametys extension to be included in the CDM-fr representation the orgunit.void
program2CDM
(ContentHandler contentHandler, Program program, Set<String> persons, Set<String> orgUnits) Send the content of an user defined ametys extension to be included in the CDM-fr representation the program.protected void
saxAcquiredSkills
(ContentHandler contentHandler, Course course) Sax the acquired skillsprotected void
saxAttachments
(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) Sax attachments (<ametys-cdm:attachments/>).protected void
saxPartnerLaboratories
(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) Sax partner laboratories (<ametys-cdm:partnerLaboratories/>).protected void
saxPartnerSchools
(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) Sax partner schools (<ametys-cdm:partnerSchools/>).protected void
saxTraining
(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) Sax training and internship informations.void
service
(ServiceManager manager) void
subProgram2CDM
(ContentHandler contentHandler, SubProgram subProgram, Set<String> persons, Set<String> orgUnits) Send the content of an user defined ametys extension to be included in the CDM-fr representation the subProgram.Methods inherited from class org.ametys.odf.cdmfr.AbstractCDMfrExtension
_getFileAbsoluteUrl
-
Constructor Details
-
AmetysCDMfrExtension
public AmetysCDMfrExtension()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
abstractProgram2CDM
public void abstractProgram2CDM(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program, Set<String> persons, Set<String> orgUnits) throws SAXException Description copied from interface:CDMfrExtension
Send the content of an user defined ametys extension to be included in the CDM-fr representation the abstract program.- Specified by:
abstractProgram2CDM
in interfaceCDMfrExtension
- Parameters:
contentHandler
- the receiving contentHandler.program
- the abstract program (common for program and subprogram)persons
- collectedPerson
ids.orgUnits
- collectedOrgUnit
ids.- Throws:
SAXException
- if an error occurs during CDM processing.
-
saxTraining
protected void saxTraining(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) throws SAXException Sax training and internship informations.- Parameters:
contentHandler
- the receiving contentHandler.program
- the abstract program (common for program and subprogram)- Throws:
SAXException
- if an error occurs during CDM processing.
-
saxPartnerSchools
protected void saxPartnerSchools(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) throws SAXException Sax partner schools (<ametys-cdm:partnerSchools/>).- Parameters:
contentHandler
- the receiving contentHandler.program
- the abstract program (common for program and subprogram)- Throws:
SAXException
- if an error occurs during CDM processing.
-
saxPartnerLaboratories
protected void saxPartnerLaboratories(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) throws SAXException Sax partner laboratories (<ametys-cdm:partnerLaboratories/>).- Parameters:
contentHandler
- the receiving contentHandler.program
- the abstract program (common for program and subprogram)- Throws:
SAXException
- if an error occurs during CDM processing.
-
saxAttachments
protected void saxAttachments(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) throws SAXException Sax attachments (<ametys-cdm:attachments/>).- Parameters:
contentHandler
- the receiving contentHandler.program
- the abstract program (common for program and subprogram)- Throws:
SAXException
- if an error occurs during CDM processing.
-
saxAcquiredSkills
Sax the acquired skills- Parameters:
contentHandler
- the receiving contentHandler.course
- the course- Throws:
SAXException
- if an error occurs during CDM processing.
-
program2CDM
public void program2CDM(ContentHandler contentHandler, Program program, Set<String> persons, Set<String> orgUnits) throws SAXException Description copied from interface:CDMfrExtension
Send the content of an user defined ametys extension to be included in the CDM-fr representation the program.- Specified by:
program2CDM
in interfaceCDMfrExtension
- Parameters:
contentHandler
- the receiving contentHandler.program
- the programpersons
- collectedPerson
ids.orgUnits
- collectedOrgUnit
ids.- Throws:
SAXException
- if an error occurs during CDM processing.
-
subProgram2CDM
public void subProgram2CDM(ContentHandler contentHandler, SubProgram subProgram, Set<String> persons, Set<String> orgUnits) throws SAXException Description copied from interface:CDMfrExtension
Send the content of an user defined ametys extension to be included in the CDM-fr representation the subProgram.- Specified by:
subProgram2CDM
in interfaceCDMfrExtension
- Parameters:
contentHandler
- the receiving contentHandler.subProgram
- the subProgrampersons
- collectedPerson
ids.orgUnits
- collectedOrgUnit
ids.- Throws:
SAXException
- if an error occurs during CDM processing.
-
course2CDM
public void course2CDM(ContentHandler contentHandler, Course course, Set<String> persons, Set<String> orgUnits) throws SAXException Description copied from interface:CDMfrExtension
Send the content of an user defined ametys extension to be included in the CDM-fr representation the course.- Specified by:
course2CDM
in interfaceCDMfrExtension
- Parameters:
contentHandler
- the receiving contentHandler.course
- the coursepersons
- collectedPerson
ids.orgUnits
- collectedOrgUnit
ids.- Throws:
SAXException
- if an error occurs during CDM processing.
-
_coursePart2CDM
protected void _coursePart2CDM(ContentHandler contentHandler, CoursePart coursePart) throws SAXException Sax aCoursePart
with the following structure : <ametys-cdm:coursePart @ametys-cdm:code="code"> <ametys-cdm:title>Title</ametys-cdm:title> <ametys-cdm:nature>Nature CDM-fr value or code</ametys-cdm:nature> <ametys-cdm:nbHours>Number of hours</ametys-cdm:nbHours> <ametys-cdm:courseHolder>CDM ID of the course holder</ametys-cdm:courseHolder> </ametys-cdm:coursePart>- Parameters:
contentHandler
- The content handlercoursePart
- TheCoursePart
to sax- Throws:
SAXException
- if an error occurs
-
orgunit2CDM
Description copied from interface:CDMfrExtension
Send the content of an user defined ametys extension to be included in the CDM-fr representation the orgunit.- Specified by:
orgunit2CDM
in interfaceCDMfrExtension
- Parameters:
contentHandler
- the receiving contentHandler.orgunit
- the orgunit- Throws:
SAXException
- if an error occurs during CDM processing.
-
person2CDM
Description copied from interface:CDMfrExtension
Send the content of an user defined ametys extension to be included in the CDM-fr representation the orgunit.- Specified by:
person2CDM
in interfaceCDMfrExtension
- Parameters:
contentHandler
- the receiving contentHandler.person
- the orgunit- Throws:
SAXException
- if an error occurs during CDM processing.
-
container2CDM
public void container2CDM(ContentHandler contentHandler, Container container, Set<String> persons, Set<String> orgUnits) throws SAXException Description copied from interface:CDMfrExtension
Send the content of an user defined ametys extension to be included in the CDM-fr representation the container.- Specified by:
container2CDM
in interfaceCDMfrExtension
- Parameters:
contentHandler
- the receiving contentHandler.container
- the containerpersons
- collectedPerson
ids.orgUnits
- collectedOrgUnit
ids.- Throws:
SAXException
- if an error occurs during CDM processing.
-