public class RelatedProductProcessor extends AbstractModelVariableModifierProcessor
| Modifier and Type | Field and Description |
|---|---|
protected RelatedProductsService |
relatedProductsService |
| 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 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, getMatcherprotected 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<Product> convertRelatedProductsToProducts(List<? extends PromotableProduct> relatedProducts)
Copyright © 2017. All rights reserved.