Package org.ametys.odf.course.generators
Class CourseContentGenerator
- 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.cms.content.ContentGenerator
-
- org.ametys.odf.program.generators.ODFContentGenerator
-
- org.ametys.odf.program.generators.ProgramContentGenerator
-
- org.ametys.odf.course.generators.CourseContentGenerator
-
- All Implemented Interfaces:
Poolable,Recyclable,Disposable,Initializable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
public class CourseContentGenerator extends ProgramContentGenerator
-
-
Field Summary
-
Fields inherited from class org.ametys.odf.program.generators.ProgramContentGenerator
_odfHelper, _srcResolver
-
Fields inherited from class org.ametys.odf.program.generators.ODFContentGenerator
_resolver
-
Fields inherited from class org.ametys.cms.content.ContentGenerator
_contentSaxer, _contentTypeExtensionPoint, _cTypesHelper, _DC_DATE_FORMAT
-
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
-
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
-
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
-
Constructor Summary
Constructors Constructor Description CourseContentGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_saxOtherData(Content content, Locale defaultLocale)SAX any other data needed by the view.protected voidsaxCourseLists(Course course, Locale defaultLocale)SAX the referencedCourseListsprotected voidsaxCourseParts(Course course, Locale defaultLocale)SAX the referencedCoursePartsprotected voidsaxReferencedPrograms(Course course)SAX the referenced programs-
Methods inherited from class org.ametys.odf.program.generators.ProgramContentGenerator
_addAttrIfNotEmpty, getLinkedContents, initialize, recycle, saxChildProgramPart, saxContainer, saxContent, saxContent, saxCourse, saxCourseList, saxCoursePart, saxLinkedContents, saxOrgUnits, saxPersons, saxSubProgram, saxTranslation, service, setup
-
Methods inherited from class org.ametys.odf.program.generators.ODFContentGenerator
saxTranslations
-
Methods inherited from class org.ametys.cms.content.ContentGenerator
_generateContent, _getView, _saxAttributesComments, _saxContent, _saxOtherData, generate, getDefaultLocale
-
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
-
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
-
-
-
Constructor Detail
-
CourseContentGenerator
public CourseContentGenerator()
-
-
Method Detail
-
_saxOtherData
protected void _saxOtherData(Content content, Locale defaultLocale) throws SAXException, ProcessingException, IOException
Description copied from class:ContentGeneratorSAX any other data needed by the view.Default implementation does nothing.
- Overrides:
_saxOtherDatain classProgramContentGenerator- Parameters:
content- the content.defaultLocale- The default locale- Throws:
SAXException- if an error occurs while SAXing.ProcessingException- if an error occurs.IOException- if an error occurs.
-
saxReferencedPrograms
protected void saxReferencedPrograms(Course course) throws SAXException
SAX the referenced programs- Parameters:
course- The course- Throws:
SAXException- if an error occurs while saxing
-
saxCourseLists
protected void saxCourseLists(Course course, Locale defaultLocale) throws SAXException, ProcessingException, IOException
SAX the referencedCourseLists- Parameters:
course- The coursedefaultLocale- The default locale- Throws:
SAXException- if an error occurs while saxingIOException- if an error occursProcessingException- if an error occurs
-
saxCourseParts
protected void saxCourseParts(Course course, Locale defaultLocale) throws SAXException, ProcessingException, IOException
SAX the referencedCourseParts- Parameters:
course- The coursedefaultLocale- The default locale- Throws:
SAXException- if an error occurs while saxingIOException- if an error occursProcessingException- if an error occurs
-
-