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
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
_saxAdditionalContentAttributes
(Content content, AttributesImpl atts) Sax additional data on the contentprotected void
Generate information on content consistency.void
generate()
protected String
getName
(UserIdentity userIdentity) Get the user namevoid
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
-
_resolver
The ametys object resolver
-
-
Constructor Details
-
ContentConsistencyReportGenerator
public ContentConsistencyReportGenerator()
-
-
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
-
getName
Get the user name- Parameters:
userIdentity
- the user- Returns:
- the user name
-