public class CartElementsGenerator extends ServiceableGenerator
Cart| Modifier and Type | Field and Description |
|---|---|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected UserManager |
_userManager
The user manager
|
protected CurrentUserProvider |
_userProvider
The current user provider
|
protected WorkflowHelper |
_workflowHelper
The workflow helper
|
protected WorkflowProvider |
_workflowProvider
The workflow provider
|
managerobjectModel, parameters, resolver, sourcecontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer| Constructor and Description |
|---|
CartElementsGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected com.opensymphony.workflow.spi.Step |
_getCurrentStep(WorkflowAwareContent content,
WorkflowProvider.AmetysObjectWorkflow workflow)
Get a content's step, wherever it works on the base version or not.
|
protected void |
_saxElement(CartElement elmt)
SAX an element of the cart
|
protected void |
_saxWorkflowStep(Content content)
SAX the workflow step if the content is a
WorkflowAwareContent |
void |
generate() |
void |
service(ServiceManager smanager) |
disposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerprotected AmetysObjectResolver _resolver
protected WorkflowProvider _workflowProvider
protected WorkflowHelper _workflowHelper
protected CurrentUserProvider _userProvider
protected UserManager _userManager
public CartElementsGenerator()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class ServiceableGeneratorServiceExceptionpublic void generate() throws IOException, SAXException, ProcessingException
protected void _saxElement(CartElement elmt) throws SAXException
elmt - The element to SAXSAXException - if something goes wrong when saxing the elementprotected void _saxWorkflowStep(Content content) throws SAXException
WorkflowAwareContentcontent - The contentSAXException - if an error occurs while SAXing.protected com.opensymphony.workflow.spi.Step _getCurrentStep(WorkflowAwareContent content, WorkflowProvider.AmetysObjectWorkflow workflow) throws com.opensymphony.workflow.WorkflowException
content - the content.workflow - the workflow instance bound to this contentcom.opensymphony.workflow.WorkflowException - if an error occurs.