public class WebAmetysCDMfrExtension extends Object implements CDMfrExtension, Serviceable
Modifier and Type | Field and Description |
---|---|
private OdfPageResolver |
_odfPageResolver |
private SiteManager |
_siteManager |
Constructor and Description |
---|
WebAmetysCDMfrExtension() |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
service(ServiceManager manager) |
private OdfPageResolver _odfPageResolver
private SiteManager _siteManager
public WebAmetysCDMfrExtension()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void abstractProgram2CDM(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program, Set<String> persons, Set<String> orgUnits) throws SAXException
CDMfrExtension
abstractProgram2CDM
in interface CDMfrExtension
contentHandler
- the receiving contentHandler.program
- the abstract program (common for program and subprogram)persons
- collected Person
ids.orgUnits
- collected OrgUnit
ids.SAXException
- if an error occurs during CDM processing.public void program2CDM(ContentHandler contentHandler, Program program, Set<String> persons, Set<String> orgUnits) throws SAXException
CDMfrExtension
program2CDM
in interface CDMfrExtension
contentHandler
- the receiving contentHandler.program
- the programpersons
- collected Person
ids.orgUnits
- collected OrgUnit
ids.SAXException
- if an error occurs during CDM processing.public void course2CDM(ContentHandler contentHandler, Course course, Set<String> persons, Set<String> orgUnits) throws SAXException
CDMfrExtension
course2CDM
in interface CDMfrExtension
contentHandler
- the receiving contentHandler.course
- the coursepersons
- collected Person
ids.orgUnits
- collected OrgUnit
ids.SAXException
- if an error occurs during CDM processing.public void orgunit2CDM(ContentHandler contentHandler, OrgUnit orgunit) throws SAXException
CDMfrExtension
orgunit2CDM
in interface CDMfrExtension
contentHandler
- the receiving contentHandler.orgunit
- the orgunitSAXException
- if an error occurs during CDM processing.public void person2CDM(ContentHandler contentHandler, Person person) throws SAXException
CDMfrExtension
person2CDM
in interface CDMfrExtension
contentHandler
- the receiving contentHandler.person
- the orgunitSAXException
- if an error occurs during CDM processing.public void container2CDM(ContentHandler contentHandler, Container container, Set<String> persons, Set<String> orgUnits) throws SAXException
CDMfrExtension
container2CDM
in interface CDMfrExtension
contentHandler
- the receiving contentHandler.container
- the containerpersons
- collected Person
ids.orgUnits
- collected OrgUnit
ids.SAXException
- if an error occurs during CDM processing.