public class AmetysCDMfrExtension extends Object implements CDMfrExtension, Serviceable
| Modifier and Type | Field and Description | 
|---|---|
private CatalogsManager | 
_catalogsManager  | 
private MonthEnumerator | 
_monthEnumerator  | 
private OdfReferenceTableHelper | 
_refTableHelper  | 
private AmetysObjectResolver | 
_resolver  | 
private SourceResolver | 
_sourceResolver  | 
| Constructor and Description | 
|---|
AmetysCDMfrExtension()  | 
| Modifier and Type | Method and Description | 
|---|---|
private String | 
_getBinaryAbsoluteUrl(AbstractProgram<? extends ProgramFactory> program,
                     BinaryMetadata binary,
                     String metadataPath)  | 
private void | 
_saxMultipleEnumeration(ContentHandler contentHandler,
                       String[] values,
                       String referenceTable,
                       String tagName,
                       String lang)
SAX a multiple metadata based on an reference table. 
 | 
private void | 
_sortRepeaterEntries(String[] entryNames)  | 
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 | 
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)  | 
private OdfReferenceTableHelper _refTableHelper
private CatalogsManager _catalogsManager
private SourceResolver _sourceResolver
private AmetysObjectResolver _resolver
private MonthEnumerator _monthEnumerator
public AmetysCDMfrExtension()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void abstractProgram2CDM(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program, Set<String> persons, Set<String> orgUnits) throws SAXException
CDMfrExtensionabstractProgram2CDM in interface CDMfrExtensioncontentHandler - 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.private void _saxMultipleEnumeration(ContentHandler contentHandler, String[] values, String referenceTable, String tagName, String lang) throws SAXException
contentHandler - The handlervalues - Values to SAXreferenceTable - The name of the reference tabletagName - The tag namelang - The language to translate the labelSAXException - if an error occursprotected void saxTraining(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) throws SAXException
contentHandler - the receiving contentHandler.program - the abstract program (common for program and subprogram)SAXException - if an error occurs during CDM processing.protected void saxPartnerSchools(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) throws SAXException
contentHandler - the receiving contentHandler.program - the abstract program (common for program and subprogram)SAXException - if an error occurs during CDM processing.protected void saxPartnerLaboratories(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) throws SAXException
contentHandler - the receiving contentHandler.program - the abstract program (common for program and subprogram)SAXException - if an error occurs during CDM processing.protected void saxAttachments(ContentHandler contentHandler, AbstractProgram<? extends ProgramFactory> program) throws SAXException
contentHandler - the receiving contentHandler.program - the abstract program (common for program and subprogram)SAXException - if an error occurs during CDM processing.private void _sortRepeaterEntries(String[] entryNames)
private String _getBinaryAbsoluteUrl(AbstractProgram<? extends ProgramFactory> program, BinaryMetadata binary, String metadataPath)
public void program2CDM(ContentHandler contentHandler, Program program, Set<String> persons, Set<String> orgUnits) throws SAXException
CDMfrExtensionprogram2CDM in interface CDMfrExtensioncontentHandler - 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
CDMfrExtensioncourse2CDM in interface CDMfrExtensioncontentHandler - 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
CDMfrExtensionorgunit2CDM in interface CDMfrExtensioncontentHandler - the receiving contentHandler.orgunit - the orgunitSAXException - if an error occurs during CDM processing.public void person2CDM(ContentHandler contentHandler, Person person) throws SAXException
CDMfrExtensionperson2CDM in interface CDMfrExtensioncontentHandler - 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
CDMfrExtensioncontainer2CDM in interface CDMfrExtensioncontentHandler - the receiving contentHandler.container - the containerpersons - collected Person ids.orgUnits - collected OrgUnit ids.SAXException - if an error occurs during CDM processing.