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
FieldsModifier and TypeFieldDescriptionprotected ConsistencyCheckerThe consistency checkerprotected ContentHelperThe content helperprotected ContentTypesHelperThe content types helperprotected AmetysObjectResolverRepository contentprotected RightManagerThe right managerFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
managerFields 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 TypeMethodDescriptionvoidgenerate()protected voidsaxReferencesConsistency(Content content, OutgoingReferences references, String dataPath) Check consistency for each outgoing references and generate SAX event for the result.voidservice(ServiceManager smanager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
disposeMethods 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
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:
servicein interfaceServiceable- Overrides:
servicein 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
-