Class NewsletterListGenerator
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.plugins.newsletter.generators.NewsletterListGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
SAX the newsletters of a given category
-
Field Summary
Modifier and TypeFieldDescriptionprotected CategoryProviderExtensionPoint
The category provider extension point.protected SourceResolver
The excalibur source resolver.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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_saxCategory
(Category category) Sax a category.protected void
_saxNewsletterContent
(Content content) Sax the newsletter content.protected void
_saxRssFeed
(Category category) Sax the link to the newsletter archives RSS feed.void
generate()
void
service
(ServiceManager smanager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
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
-
Field Details
-
_categoryProviderEP
The category provider extension point. -
_sourceResolver
The excalibur source resolver.
-
-
Constructor Details
-
NewsletterListGenerator
public NewsletterListGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
_saxCategory
Sax a category.- Parameters:
category
- the category to sax- Throws:
SAXException
- if an error occurred while saxing
-
_saxNewsletterContent
Sax the newsletter content.- Parameters:
content
- the newsletter content.- Throws:
SAXException
- if an error occurred while saxingIOException
- if an I/O error occurred
-
_saxRssFeed
Sax the link to the newsletter archives RSS feed.- Parameters:
category
- the category.- Throws:
SAXException
- if an error occurred while saxingProcessingException
- if an error occurred
-