Package org.ametys.cms.content
Class ContentInformationGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.ametys.cms.content.ContentInformationGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
SAX the contents information
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helperprotected ContentWorkflowHelper
The content workflow helperprotected LockContentManager
The lock manager.protected AmetysObjectResolver
Ametys object resovler.protected RightManager
The rights managerprotected CurrentUserProvider
The user providerprotected WorkflowProvider
The workflow providerFields 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
saxAdditionalAtttributes
(Content content, AttributesImpl attrs) SAX the additional attributesprotected void
saxAdditionalInformation
(Content content) SAX additional information on contentprotected void
saxUserRights
(Content content) SAX the user rights on contentvoid
service
(ServiceManager serviceManager) 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
Ametys object resovler. -
_rightManager
The rights manager -
_userProvider
The user provider -
_workflowProvider
The workflow provider -
_lockManager
The lock manager. -
_contentWorkflowHelper
The content workflow helper -
_contentHelper
The content helper
-
-
Constructor Details
-
ContentInformationGenerator
public ContentInformationGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
saxUserRights
SAX the user rights on content- Parameters:
content
- The content to check rights- Throws:
SAXException
- if an error occurred while SAXing
-
saxAdditionalAtttributes
SAX the additional attributes- Parameters:
content
- The contentattrs
- The attributes- Throws:
SAXException
- if an error occurred while SAXing
-
saxAdditionalInformation
SAX additional information on content- Parameters:
content
- The content- Throws:
SAXException
- if an error occurred while SAXing
-