org.broadleafcommerce.core.web.processor
Class ProductOptionsProcessor

java.lang.Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.element.AbstractElementProcessor
          extended by org.broadleafcommerce.common.web.dialect.AbstractModelVariableModifierProcessor
              extended by org.broadleafcommerce.core.web.processor.ProductOptionsProcessor
All Implemented Interfaces:
Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor

public class ProductOptionsProcessor
extends AbstractModelVariableModifierProcessor

This processor will add the following information to the model, available for consumption by a template: -pricing for a sku based on the product option values selected -the complete set of product options and values for a given product

Author:
jfridye

Field Summary
protected static Map<Object,String> JSON_CACHE
           
 
Constructor Summary
ProductOptionsProcessor()
           
 
Method Summary
 int getPrecedence()
           
protected  void modifyModelAttributes(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
           
 
Methods inherited from class org.broadleafcommerce.common.web.dialect.AbstractModelVariableModifierProcessor
addToModel, processElement
 
Methods inherited from class org.thymeleaf.processor.element.AbstractElementProcessor
doProcess, getMatcher
 
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSON_CACHE

protected static final Map<Object,String> JSON_CACHE
Constructor Detail

ProductOptionsProcessor

public ProductOptionsProcessor()
Method Detail

getPrecedence

public int getPrecedence()
Specified by:
getPrecedence in class org.thymeleaf.processor.AbstractProcessor

modifyModelAttributes

protected void modifyModelAttributes(org.thymeleaf.Arguments arguments,
                                     org.thymeleaf.dom.Element element)
Specified by:
modifyModelAttributes in class AbstractModelVariableModifierProcessor


Copyright © 2012. All Rights Reserved.