Class ContentConsistencyResultGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.ametys.cms.content.consistency.ContentConsistencyResultGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
Retrieve all content consistency result stored and sax them
-
Field Summary
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The ametys object resolverstatic final String
the name of the attribute use to recover the list of resultFields 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
_saxAdditionalContentAttributes
(Content content, AttributesImpl atts) Sax additional data on the contentprotected void
Generate information on content consistency.void
generate()
void
service
(ServiceManager manager) 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
-
RESULTS_REQUEST_ATTRIBUTE_NAME
the name of the attribute use to recover the list of result- See Also:
-
_resolver
The ametys object resolver
-
-
Constructor Details
-
ContentConsistencyResultGenerator
public ContentConsistencyResultGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
generate
- Specified by:
generate
in interfaceGenerator
- Throws:
IOException
SAXException
ProcessingException
-
_saxContentConsistency
protected void _saxContentConsistency(Map<String, Object> result, List<String> columns) throws SAXExceptionGenerate information on content consistency.- Parameters:
result
- the content consistency checker resultcolumns
- the names of the columns to SAX- Throws:
SAXException
- if an errors occurs generating the data.
-
_saxAdditionalContentAttributes
Sax additional data on the content- Parameters:
content
- the content.atts
- the attributes the will be saxed
-