Class RepositoryLogicNodeGenerator
- 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.plugins.repository.workspace.RepositoryLogicNodeGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
public class RepositoryLogicNodeGenerator extends ServiceableGenerator
Generate the content of a logic node:- metadata
- ametys object properties
- children
-
-
Field Summary
Fields Modifier and Type Field Description private AmetysObjectResolver
_resolver
-
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 RepositoryLogicNodeGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_saxChildren(TraversableAmetysObject ao)
private void
_saxFile(File file)
private void
_saxFolder(Folder folder)
private void
_saxMetaData(CompositeMetadata holder, boolean isLocked, boolean isModifiable)
private void
_saxMultipleValues(CompositeMetadata holder, String name, CompositeMetadata.MetadataType type, boolean isLocked, boolean isModifiable)
private void
_saxObject(String id)
private void
_saxRichText(RichText rt)
private void
_saxSimpleValue(CompositeMetadata holder, String name, CompositeMetadata.MetadataType type, boolean isLocked, boolean isModifiable)
private void
_saxValues(CompositeMetadata holder, String name, CompositeMetadata.MetadataType type, Boolean isMultiple, boolean isLocked, boolean isModifiable)
void
generate()
void
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
private AmetysObjectResolver _resolver
-
-
Constructor Detail
-
RepositoryLogicNodeGenerator
public RepositoryLogicNodeGenerator()
-
-
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
-
_saxObject
private void _saxObject(String id) throws SAXException, RepositoryException
- Throws:
SAXException
RepositoryException
-
_saxMetaData
private void _saxMetaData(CompositeMetadata holder, boolean isLocked, boolean isModifiable) throws SAXException, RepositoryException
- Throws:
SAXException
RepositoryException
-
_saxChildren
private void _saxChildren(TraversableAmetysObject ao) throws SAXException, RepositoryException
- Throws:
SAXException
RepositoryException
-
_saxValues
private void _saxValues(CompositeMetadata holder, String name, CompositeMetadata.MetadataType type, Boolean isMultiple, boolean isLocked, boolean isModifiable) throws RepositoryException, SAXException
- Throws:
RepositoryException
SAXException
-
_saxMultipleValues
private void _saxMultipleValues(CompositeMetadata holder, String name, CompositeMetadata.MetadataType type, boolean isLocked, boolean isModifiable) throws RepositoryException, SAXException
- Throws:
RepositoryException
SAXException
-
_saxSimpleValue
private void _saxSimpleValue(CompositeMetadata holder, String name, CompositeMetadata.MetadataType type, boolean isLocked, boolean isModifiable) throws RepositoryException, SAXException
- Throws:
RepositoryException
SAXException
-
_saxRichText
private void _saxRichText(RichText rt) throws RepositoryException, SAXException
- Throws:
RepositoryException
SAXException
-
_saxFolder
private void _saxFolder(Folder folder) throws RepositoryException, SAXException
- Throws:
RepositoryException
SAXException
-
_saxFile
private void _saxFile(File file) throws SAXException
- Throws:
SAXException
-
-