public class CartElementDetailsGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
private JSONUtils |
_jsonUtils
The Json utils
|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
private SourceResolver |
_sourceResolver
The source resolver
|
private UserManager |
_userManager
The user manager
|
protected CurrentUserProvider |
_userProvider
The current user provider
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
CartElementDetailsGenerator() |
Modifier and Type | Method and Description |
---|---|
protected String |
_contentToCocoonUrl(ContentElement content)
Returns the Cocoon pipeline URL that returns content details
|
protected void |
_saxCartElement(CartElement cartElement,
I18nizableText group)
SAX the attributes of a cart element
|
protected void |
_saxContents(List<ContentElement> contents)
SAX contents of the cart
|
protected void |
_saxQueries(List<QueryElement> queries)
SAX queries of the cart
|
protected void |
_saxResources(List<ResourceElement> resources)
SAX resources of the cart
|
void |
generate() |
void |
service(ServiceManager smanager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected AmetysObjectResolver _resolver
protected CurrentUserProvider _userProvider
private JSONUtils _jsonUtils
private SourceResolver _sourceResolver
private UserManager _userManager
public CartElementDetailsGenerator()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void _saxResources(List<ResourceElement> resources) throws IOException, SAXException
resources
- The resources of the cartIOException
- if an error occurredSAXException
- if an error occurred while saxingprotected void _saxCartElement(CartElement cartElement, I18nizableText group) throws SAXException
cartElement
- The element to saxgroup
- The group to sax withSAXException
- if an error occurred while saxingprotected void _saxContents(List<ContentElement> contents) throws IOException, SAXException
contents
- The contents of the cartIOException
- if an error occurredSAXException
- if an error occurred while saxingprotected String _contentToCocoonUrl(ContentElement content)
content
- The contentprotected void _saxQueries(List<QueryElement> queries) throws IOException, SAXException
queries
- The queries of the cartIOException
- if an error occurredSAXException
- if an error occurred while saxing