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_contentHelperThe content helperprotected ContentWorkflowHelper_contentWorkflowHelperThe content workflow helperprotected LockContentManager_lockManagerThe lock manager.protected AmetysObjectResolver_resolverAmetys object resovler.protected RightManager_rightManagerThe rights managerprotected CurrentUserProvider_userProviderThe user providerprotected WorkflowProvider_workflowProviderThe 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 voidgenerate()protected voidsaxAdditionalAtttributes(Content content, AttributesImpl attrs)SAX the additional attributesprotected voidsaxAdditionalInformation(Content content)SAX additional information on contentprotected voidsaxUserRights(Content content)SAX the user rights on contentvoidservice(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:
servicein interfaceServiceable- Overrides:
servicein 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
-
-