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
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe ametys object resolverstatic final Stringthe name of the attribute use to recover the list of resultFields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_saxAdditionalContentAttributes(Content content, AttributesImpl atts) Sax additional data on the contentprotected voidGenerate information on content consistency.voidgenerate()voidservice(ServiceManager manager) Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
servicein interfaceServiceable- Throws:
ServiceException
-
generate
- Specified by:
generatein interfaceGenerator- Throws:
IOExceptionSAXExceptionProcessingException
-
_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
-