Class ContentConsistencyReportGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.ametys.cms.content.consistency.ContentConsistencyReportGenerator
- All Implemented Interfaces:
Poolable,Recyclable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
Retrieve all content consistency result stored and sax them
-
Field Summary
FieldsFields 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()protected StringgetName(UserIdentity userIdentity) Get the user namevoidservice(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
-
_resolver
The ametys object resolver
-
-
Constructor Details
-
ContentConsistencyReportGenerator
public ContentConsistencyReportGenerator()
-
-
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
-
getName
Get the user name- Parameters:
userIdentity- the user- Returns:
- the user name
-