Class ExportCatalogByLevelsGenerator
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.odf.export.ExportCatalogByLevelsGenerator
org.ametys.plugins.odfweb.catalog.ExportCatalogByLevelsGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
Generates ODF catalog for ODF-Web
See
ExportCatalogByLevelsGenerator
-
Field Summary
Modifier and TypeFieldDescriptionprotected OdfPageHandler
The ODF Page handlerprotected OdfPageResolver
The ODF Page resolverprotected SiteManager
The site managerFields inherited from class org.ametys.odf.export.ExportCatalogByLevelsGenerator
_contentTypesHelper, _odfClassificationHandler, _odfHelper, _odfRefTableHelper, _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
-
Method Summary
Modifier and TypeMethodDescriptionprotected AmetysObjectIterable<Program>
getConcernedPrograms
(Map<String, String> wsParameters) Get the programs to SAX.protected AttributesImpl
getContentAttributes
(ProgramItem programItem, Program parentProgram, Map<String, String> wsParameters) Get attributes for the current saxed content (title, id, etc.).protected boolean
getParameters
(Map<String, String> wsParameters) Get the parameters from the request and test it.void
service
(ServiceManager smanager) Methods inherited from class org.ametys.odf.export.ExportCatalogByLevelsGenerator
_addLevelAttributes, generate, getParameter
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 Details
-
_odfPageHandler
The ODF Page handler -
_odfPageResolver
The ODF Page resolver -
_siteManager
The site manager
-
-
Constructor Details
-
ExportCatalogByLevelsGenerator
public ExportCatalogByLevelsGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classExportCatalogByLevelsGenerator
- Throws:
ServiceException
-
getParameters
Description copied from class:ExportCatalogByLevelsGenerator
Get the parameters from the request and test it.- Overrides:
getParameters
in classExportCatalogByLevelsGenerator
- Parameters:
wsParameters
- Map of parameters to fill- Returns:
- false if a parameter is missing or something going wrong with the parameters, otherwise true
- Throws:
SAXException
- if an error occured
-
getConcernedPrograms
Description copied from class:ExportCatalogByLevelsGenerator
Get the programs to SAX.- Overrides:
getConcernedPrograms
in classExportCatalogByLevelsGenerator
- Parameters:
wsParameters
- Parameters of the web service- Returns:
- A Collection of programs
-
getContentAttributes
protected AttributesImpl getContentAttributes(ProgramItem programItem, Program parentProgram, Map<String, String> wsParameters) Description copied from class:ExportCatalogByLevelsGenerator
Get attributes for the current saxed content (title, id, etc.).- Overrides:
getContentAttributes
in classExportCatalogByLevelsGenerator
- Parameters:
programItem
- Part of the program to get attributesparentProgram
- Initial programwsParameters
- Parameters of the web service- Returns:
- The attributes to sax
-