public class RelatedProductProcessor extends AbstractModelVariableModifierProcessor
| Modifier and Type | Field and Description |
|---|---|
protected RelatedProductsService |
relatedProductsService |
protected boolean |
useSku |
| Constructor and Description |
|---|
RelatedProductProcessor()
Sets the name of this processor to be used in Thymeleaf template
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Product> |
buildProductList(List<? extends PromotableProduct> relatedProducts) |
protected List<Product> |
convertRelatedProductsToProducts(List<? extends PromotableProduct> relatedProducts) |
int |
getPrecedence() |
protected List<Sku> |
getRelatedSkus(List<? extends PromotableProduct> relatedProducts,
Integer maxQuantity) |
protected void |
modifyModelAttributes(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
This method must be overriding by a processor that wishes to modify the model.
|
addCollectionToExistingSet, addItemToExistingSet, addToModel, processElementdoProcess, getMatcher@Value(value="${solr.index.use.sku}")
protected boolean useSku
protected RelatedProductsService relatedProductsService
public RelatedProductProcessor()
public int getPrecedence()
getPrecedence in class AbstractModelVariableModifierProcessorprotected void modifyModelAttributes(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
AbstractModelVariableModifierProcessormodifyModelAttributes in class AbstractModelVariableModifierProcessorprotected List<Product> buildProductList(List<? extends PromotableProduct> relatedProducts)
protected List<Sku> getRelatedSkus(List<? extends PromotableProduct> relatedProducts, Integer maxQuantity)
protected List<Product> convertRelatedProductsToProducts(List<? extends PromotableProduct> relatedProducts)
Copyright © 2015. All rights reserved.