@Component(value="blProductOptionsProcessor") @ConditionalOnTemplating public class ProductOptionsProcessor extends Object implements ProductOptionsExpression
| 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) |
protected ProductOptionsProcessor.ProductOptionPricingDTO |
createPricingDto(Sku sku,
List<Long> productOptionValueIds) |
Map<String,Object> |
getData(Long productId) |
String |
getName() |
int |
getPrecedence() |
protected void |
writeJSONToModel(Map<String,Object> newModelVars,
String modelKey,
Object o) |
protected CatalogService catalogService
protected ProductOptionsProcessorExtensionManager extensionManager
public String getName()
getName in interface BroadleafVariableExpressiongetName in interface ProductOptionsExpressionpublic int getPrecedence()
getPrecedence in interface ProductOptionsExpressionpublic Map<String,Object> getData(Long productId)
getData in interface ProductOptionsExpressionprotected void addProductOptionPricingToModel(Map<String,Object> newModelVars, Product product)
protected ProductOptionsProcessor.ProductOptionPricingDTO createPricingDto(Sku sku, List<Long> productOptionValueIds)
protected void addAllProductOptionsToModel(Map<String,Object> newModelVars, Product product)
Copyright © 2023. All rights reserved.