Package org.ametys.odf.export.pdf
Class EducationalBookletGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.ametys.odf.export.pdf.EducationalBookletGenerator
- All Implemented Interfaces:
- Poolable,- Recyclable,- Disposable,- Component,- LogEnabled,- Serviceable,- Generator,- SitemapModelComponent,- XMLProducer
Generator producing the SAX of subprogram and its courses for the educational booklet
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected CatalogsManagerThe catalog managerprotected ODFHelperThe ODF helperprotected AmetysObjectResolverThe Ametys object resolverFields inherited from class org.apache.cocoon.generation.ServiceableGeneratormanagerFields inherited from class org.apache.cocoon.generation.AbstractGeneratorobjectModel, parameters, resolver, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducercontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription_getChildCourses(ProgramItem programItem) Get all child courses from the program itemprotected Set<SubProgram>_getChildSubPrograms(ProgramItem programItem) Get the direct childSubPrograms of aProgramItemprotected void_saxCatalog(ProgramItem programItem) Sax the catalog of program itemprotected void_saxContentAsFo(Content content) Sax content as foprotected void_saxProgramItem(ProgramItem programItem, String tagName) Sax aProgramItemas fovoidgenerate()voidservice(ServiceManager sManager) Methods inherited from class org.apache.cocoon.generation.ServiceableGeneratordisposeMethods inherited from class org.apache.cocoon.generation.AbstractGeneratorrecycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducersetConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabledenableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cocoon.xml.XMLProducersetConsumer
- 
Field Details- 
_resolverThe Ametys object resolver
- 
_odfHelperThe ODF helper
- 
_catalogManagerThe catalog manager
 
- 
- 
Constructor Details- 
EducationalBookletGeneratorpublic EducationalBookletGenerator()
 
- 
- 
Method Details- 
service- Specified by:
- servicein interface- Serviceable
- Overrides:
- servicein class- ServiceableGenerator
- Throws:
- ServiceException
 
- 
generate
- 
_saxCatalogSax the catalog of program item- Parameters:
- programItem- the program item
- Throws:
- SAXException- if an error occurred
 
- 
_getChildCoursesprotected Set<Course> _getChildCourses(ProgramItem programItem) throws MalformedURLException, IOException, SAXException Get all child courses from the program item- Parameters:
- programItem- the program item
- Returns:
- the set of child courses
- Throws:
- MalformedURLException- if an error occurred
- IOException- if an error occurred
- SAXException- if an error occurred
 
- 
_getChildSubProgramsGet the direct childSubPrograms of aProgramItem- Parameters:
- programItem- the program item
- Returns:
- the subprograms
 
- 
_saxProgramItemprotected void _saxProgramItem(ProgramItem programItem, String tagName) throws MalformedURLException, IOException, SAXException Sax aProgramItemas fo- Parameters:
- programItem- the program item
- tagName- the xml tag name
- Throws:
- MalformedURLException- if an error occurred
- IOException- if an error occurred
- SAXException- if an error occurred
 
- 
_saxContentAsFoprotected void _saxContentAsFo(Content content) throws MalformedURLException, IOException, SAXException Sax content as fo- Parameters:
- content- the content
- Throws:
- MalformedURLException- if an error occurred
- IOException- if an error occurred
- SAXException- if an error occurred
 
 
-