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
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe Ametys object resolverprotected CurrentUserProviderThe current user providerFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
managerFields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer -
Constructor Summary
Constructors -
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 cartvoidgenerate()voidservice(ServiceManager smanager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
disposeMethods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
servicein interfaceServiceable- Overrides:
servicein 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
-