info.magnolia.module.shop.paragraphs
Class ShoppingCartParagraphModel

java.lang.Object
  extended by info.magnolia.rendering.model.RenderingModelImpl<RD>
      extended by info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel<info.magnolia.rendering.template.TemplateDefinition>
          extended by info.magnolia.module.templatingkit.templates.components.AbstractItemListModel<info.magnolia.rendering.template.TemplateDefinition>
              extended by info.magnolia.module.shop.paragraphs.ShopParagraphModel
                  extended by info.magnolia.module.shop.paragraphs.ShoppingCartParagraphModel
All Implemented Interfaces:
info.magnolia.module.templatingkit.templates.STKRenderingModel<info.magnolia.rendering.template.TemplateDefinition>, info.magnolia.rendering.model.RenderingModel<info.magnolia.rendering.template.TemplateDefinition>

public class ShoppingCartParagraphModel
extends ShopParagraphModel

Shopping cart paragraph.

Author:
tmiyar

Field Summary
 
Fields inherited from class info.magnolia.module.shop.paragraphs.ShopParagraphModel
ALLOWED_IMAGE_TYPES
 
Fields inherited from class info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel
DEFAULT_SITEROOT_TEMPLATE_CATEGORY, stkFunctions, templatingFunctions
 
Fields inherited from class info.magnolia.rendering.model.RenderingModelImpl
content, contentMap, definition, parentModel
 
Fields inherited from interface info.magnolia.rendering.model.RenderingModel
SKIP_RENDERING
 
Constructor Summary
ShoppingCartParagraphModel(javax.jcr.Node content, info.magnolia.rendering.template.TemplateDefinition definition, info.magnolia.rendering.model.RenderingModel<?> parent, info.magnolia.module.templatingkit.functions.STKTemplatingFunctions stkFunctions, info.magnolia.templating.functions.TemplatingFunctions templatingFunctions, info.magnolia.module.templatingkit.STKModule stkModule)
           
 
Method Summary
 String execute()
           
 String getCheckoutFormLink()
           
 String getCommandLink(String command, String productUUID, int index)
           
 info.magnolia.jcr.util.ContentMap getContentByIdentifier(String identifier)
           
 
Methods inherited from class info.magnolia.module.shop.paragraphs.ShopParagraphModel
filter, getCurrencyFormatting, getCurrencyTitle, getItems, getMaxResults, getOptions, getOptionSets, getProduct, getProductDetailPageLink, getProductPriceBean, getProductPriceByCategory, getShoppingCart, getShoppingCartLink, getSiteRoot, getTaxByUUID, search, sort
 
Methods inherited from class info.magnolia.module.templatingkit.templates.components.AbstractItemListModel
getCategoryName, getPager, getRepository, getSearchRoot, getSubcategoryName
 
Methods inherited from class info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel
getSite
 
Methods inherited from class info.magnolia.rendering.model.RenderingModelImpl
getContent, getDef, getDefinition, getNode, getParent, getRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.rendering.model.RenderingModel
getContent, getDefinition, getNode, getParent, getRoot
 

Constructor Detail

ShoppingCartParagraphModel

public ShoppingCartParagraphModel(javax.jcr.Node content,
                                  info.magnolia.rendering.template.TemplateDefinition definition,
                                  info.magnolia.rendering.model.RenderingModel<?> parent,
                                  info.magnolia.module.templatingkit.functions.STKTemplatingFunctions stkFunctions,
                                  info.magnolia.templating.functions.TemplatingFunctions templatingFunctions,
                                  info.magnolia.module.templatingkit.STKModule stkModule)
Method Detail

execute

public String execute()
Specified by:
execute in interface info.magnolia.rendering.model.RenderingModel<info.magnolia.rendering.template.TemplateDefinition>
Overrides:
execute in class info.magnolia.rendering.model.RenderingModelImpl<info.magnolia.rendering.template.TemplateDefinition>

getContentByIdentifier

public info.magnolia.jcr.util.ContentMap getContentByIdentifier(String identifier)

getCommandLink

public String getCommandLink(String command,
                             String productUUID,
                             int index)

getCheckoutFormLink

public String getCheckoutFormLink()


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.