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
public class ContentInformationGenerator extends ServiceableGenerator
SAX the contents information
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentHelper
_contentHelper
The content helperprotected ContentWorkflowHelper
_contentWorkflowHelper
The content workflow helperprotected LockContentManager
_lockManager
The lock manager.protected AmetysObjectResolver
_resolver
Ametys object resovler.protected RightManager
_rightManager
The rights managerprotected CurrentUserProvider
_userProvider
The user providerprotected WorkflowProvider
_workflowProvider
The workflow provider-
Fields 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
Constructors Constructor Description ContentInformationGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
_resolver
protected AmetysObjectResolver _resolver
Ametys object resovler.
-
_rightManager
protected RightManager _rightManager
The rights manager
-
_userProvider
protected CurrentUserProvider _userProvider
The user provider
-
_workflowProvider
protected WorkflowProvider _workflowProvider
The workflow provider
-
_lockManager
protected LockContentManager _lockManager
The lock manager.
-
_contentWorkflowHelper
protected ContentWorkflowHelper _contentWorkflowHelper
The content workflow helper
-
_contentHelper
protected ContentHelper _contentHelper
The content helper
-
-
Constructor Detail
-
ContentInformationGenerator
public ContentInformationGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
saxUserRights
protected void saxUserRights(Content content) throws SAXException
SAX the user rights on content- Parameters:
content
- The content to check rights- Throws:
SAXException
- if an error occurred while SAXing
-
saxAdditionalAtttributes
protected void saxAdditionalAtttributes(Content content, AttributesImpl attrs) throws SAXException
SAX the additional attributes- Parameters:
content
- The contentattrs
- The attributes- Throws:
SAXException
- if an error occurred while SAXing
-
saxAdditionalInformation
protected void saxAdditionalInformation(Content content) throws SAXException
SAX additional information on content- Parameters:
content
- The content- Throws:
SAXException
- if an error occurred while SAXing
-
-