Package org.ametys.cms.content
Class AdditionalContentPropertiesGenerator
- 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.AdditionalContentPropertiesGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
- Direct Known Subclasses:
AdditionalWebContentPropertiesGenerator
public class AdditionalContentPropertiesGenerator extends ServiceableGenerator
Generates addition information on content
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver
_resolver
The AmetysObject resolver.protected RightManager
_rightManager
the Ametys rights managerprotected TagProviderExtensionPoint
_tagProviderEP
the tag provider extension point-
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 AdditionalContentPropertiesGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_saxContentType(ContentType cType)
SAX the content type hierarchyprotected void
_saxContentTypesHierarchy(Content content)
SAX the content types hierarchyprotected void
_saxMixin(ContentType mixin)
SAX the mixin hierarchyprotected void
_saxMixinsHierarchy(Content content)
SAX the content types hierarchyprotected void
_saxOtherProperties(Content content)
SAX other additional propertiesprotected void
_saxReferencingContents(Content content)
Sax the referencing contentsprotected void
_saxTags(Content content)
SAX content's tagsvoid
generate()
protected Map<String,Object>
getContextualParameters(AmetysObject object)
Get the contextual parameters for the given objectvoid
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
The AmetysObject resolver.
-
_rightManager
protected RightManager _rightManager
the Ametys rights manager
-
_tagProviderEP
protected TagProviderExtensionPoint _tagProviderEP
the tag provider extension point
-
-
Constructor Detail
-
AdditionalContentPropertiesGenerator
public AdditionalContentPropertiesGenerator()
-
-
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
-
_saxOtherProperties
protected void _saxOtherProperties(Content content) throws SAXException
SAX other additional properties- Parameters:
content
- the content- Throws:
SAXException
- if an error occurred while saxing
-
_saxTags
protected void _saxTags(Content content) throws SAXException
SAX content's tags- Parameters:
content
- The content- Throws:
SAXException
- if an error occurred
-
getContextualParameters
protected Map<String,Object> getContextualParameters(AmetysObject object)
Get the contextual parameters for the given object- Parameters:
object
- the object- Returns:
- the object's contextual parameters
-
_saxReferencingContents
protected void _saxReferencingContents(Content content) throws SAXException
Sax the referencing contents- Parameters:
content
- The content- Throws:
SAXException
- if an error occurred while saxing
-
_saxContentTypesHierarchy
protected void _saxContentTypesHierarchy(Content content) throws SAXException
SAX the content types hierarchy- Parameters:
content
- The content type- Throws:
SAXException
- if an error occurred while saxing
-
_saxMixinsHierarchy
protected void _saxMixinsHierarchy(Content content) throws SAXException
SAX the content types hierarchy- Parameters:
content
- The content type- Throws:
SAXException
- if an error occurred while saxing
-
_saxContentType
protected void _saxContentType(ContentType cType) throws SAXException
SAX the content type hierarchy- Parameters:
cType
- The content type- Throws:
SAXException
- if an error occurred while saxing
-
_saxMixin
protected void _saxMixin(ContentType mixin) throws SAXException
SAX the mixin hierarchy- Parameters:
mixin
- The mixin type- Throws:
SAXException
- if an error occurred while saxing
-
-