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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
AdditionalContentPropertiesGenerator.ContentTypeComparator
-
Field Summary
Fields Modifier and Type Field Description private ContentTypeExtensionPoint
_contentTypeEP
protected AmetysObjectResolver
_resolver
The AmetysObject resolver.protected RightManager
_rightManager
the Ametys rights managerprivate TagProviderExtensionPoint
_tagProviderEP
-
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 contentsprivate void
_saxRepositoryRights()
protected void
_saxTags(Content content)
SAX content's tagsvoid
generate()
protected Map<String,Object>
getContextualParameters(Content content)
Get the contextual parameters for 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
The AmetysObject resolver.
-
_rightManager
protected RightManager _rightManager
the Ametys rights manager
-
_contentTypeEP
private ContentTypeExtensionPoint _contentTypeEP
-
_tagProviderEP
private TagProviderExtensionPoint _tagProviderEP
-
-
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
-
_saxRepositoryRights
private void _saxRepositoryRights() throws SAXException
- Throws:
SAXException
-
_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(Content content)
Get the contextual parameters for content- Parameters:
content
- the content- Returns:
- the content'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
-
-