Package org.ametys.cms.content
Class ConsistencyGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
Generates the consistency report for the given content
-
Field Summary
Modifier and TypeFieldDescriptionprotected ConsistencyChecker
The consistency checkerprotected ContentHelper
The content helperprotected ContentTypesHelper
The content types helperprotected AmetysObjectResolver
Repository contentprotected RightManager
The right managerFields 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 TypeMethodDescriptionvoid
generate()
protected void
saxReferencesConsistency
(Content content, OutgoingReferences references, String dataPath) Check consistency for each outgoing references and generate SAX event for the result.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
-
_resolver
Repository content -
_consistencyChecker
The consistency checker -
_contentTypesHelper
The content types helper -
_contentHelper
The content helper -
_rightManager
The right manager
-
-
Constructor Details
-
ConsistencyGenerator
public ConsistencyGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
saxReferencesConsistency
protected void saxReferencesConsistency(Content content, OutgoingReferences references, String dataPath) throws SAXException Check consistency for each outgoing references and generate SAX event for the result.- Parameters:
content
- the content containing the referencesreferences
- the outgoing referencesdataPath
- the path of the data containing the outgoing references- Throws:
SAXException
- if an error occurred
-