Class CartElementDetailsGenerator
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.cart.generators.CartElementDetailsGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
SAX elements of a cart
-
Field Summary
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The Ametys object resolverprotected CurrentUserProvider
The current user providerFields 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 String
_contentToCocoonUrl
(ContentElement content) Returns the Cocoon pipeline URL that returns content detailsprotected void
_saxCartElement
(CartElement cartElement, I18nizableText group) SAX the attributes of a cart elementprotected void
_saxContents
(List<ContentElement> contents) SAX contents of the cartprotected void
_saxQueries
(List<QueryElement> queries) SAX queries of the cartprotected void
_saxResources
(List<ResourceElement> resources) SAX resources of the cartvoid
generate()
void
service
(ServiceManager smanager) 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
-
_resolver
The Ametys object resolver -
_userProvider
The current user provider
-
-
Constructor Details
-
CartElementDetailsGenerator
public CartElementDetailsGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
_saxResources
SAX resources of the cart- Parameters:
resources
- The resources of the cart- Throws:
IOException
- if an error occurredSAXException
- if an error occurred while saxing
-
_saxCartElement
SAX the attributes of a cart element- Parameters:
cartElement
- The element to saxgroup
- The group to sax with- Throws:
SAXException
- if an error occurred while saxing
-
_saxContents
SAX contents of the cart- Parameters:
contents
- The contents of the cart- Throws:
IOException
- if an error occurredSAXException
- if an error occurred while saxing
-
_contentToCocoonUrl
Returns the Cocoon pipeline URL that returns content details- Parameters:
content
- The content- Returns:
- The cocoon URL that returns the content details
-
_saxQueries
SAX queries of the cart- Parameters:
queries
- The queries of the cart- Throws:
IOException
- if an error occurredSAXException
- if an error occurred while saxing
-