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
public class CartElementDetailsGenerator extends ServiceableGenerator
SAX elements of a cart
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver_resolverThe Ametys object resolverprotected CurrentUserProvider_userProviderThe current user provider-
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 CartElementDetailsGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
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 Ametys object resolver
-
_userProvider
protected CurrentUserProvider _userProvider
The current user provider
-
-
Constructor Detail
-
CartElementDetailsGenerator
public CartElementDetailsGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableGenerator- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
_saxResources
protected void _saxResources(List<ResourceElement> resources) throws IOException, SAXException
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
protected void _saxCartElement(CartElement cartElement, I18nizableText group) throws SAXException
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
protected void _saxContents(List<ContentElement> contents) throws IOException, SAXException
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
protected String _contentToCocoonUrl(ContentElement content)
Returns the Cocoon pipeline URL that returns content details- Parameters:
content- The content- Returns:
- The cocoon URL that returns the content details
-
_saxQueries
protected void _saxQueries(List<QueryElement> queries) throws IOException, SAXException
SAX queries of the cart- Parameters:
queries- The queries of the cart- Throws:
IOException- if an error occurredSAXException- if an error occurred while saxing
-
-