@Component(value="blProductOptionsProcessor")
@ConditionalOnTemplating
public class ProductOptionsProcessor
extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessor
| Modifier and Type | Class and Description |
|---|---|
protected class |
ProductOptionsProcessor.ProductOptionDTO |
protected class |
ProductOptionsProcessor.ProductOptionPricingDTO |
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected ProductOptionsProcessorExtensionManager |
extensionManager |
protected static Map<Object,String> |
JSON_CACHE |
| Constructor and Description |
|---|
ProductOptionsProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAllProductOptionsToModel(Map<String,Object> newModelVars,
Product product) |
protected void |
addProductOptionPricingToModel(Map<String,Object> newModelVars,
Product product,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context,
Map<String,String> tagAttributes) |
String |
getName() |
int |
getPrecedence() |
Map<String,Object> |
populateModelVariables(String tagName,
Map<String,String> tagAttributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
protected void |
writeJSONToModel(Map<String,Object> newModelVars,
String modelKey,
Object o) |
protected CatalogService catalogService
protected ProductOptionsProcessorExtensionManager extensionManager
public String getName()
public int getPrecedence()
getPrecedence in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessorgetPrecedence in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierProcessorpublic Map<String,Object> populateModelVariables(String tagName, Map<String,String> tagAttributes, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
protected void addProductOptionPricingToModel(Map<String,Object> newModelVars, Product product, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context, Map<String,String> tagAttributes)
protected void addAllProductOptionsToModel(Map<String,Object> newModelVars, Product product)
Copyright © 2016. All rights reserved.