@Component(value="blRelatedProductsVariableExpression") public class RelatedProductsVariableExpression extends Object implements org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
| Constructor and Description |
|---|
RelatedProductsVariableExpression(RelatedProductsService relatedProductsService) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Product> |
buildProductList(List<? extends PromotableProduct> relatedProducts) |
List<Product> |
findByCategory(Long categoryId,
Integer quantity) |
List<Product> |
findByCategory(Long categoryId,
Integer quantity,
String type) |
List<Product> |
findByProduct(Long productId) |
List<Product> |
findByProduct(Long productId,
Integer quantity) |
List<Product> |
findByProduct(Long productId,
Integer quantity,
String type) |
String |
getName() |
List<Product> |
getRelatedProducts(Long productId,
Long categoryId,
Integer quantity,
String type) |
@Autowired public RelatedProductsVariableExpression(RelatedProductsService relatedProductsService)
public String getName()
getName in interface org.broadleafcommerce.common.web.expression.BroadleafVariableExpressionpublic List<Product> getRelatedProducts(Long productId, Long categoryId, Integer quantity, String type)
protected List<Product> buildProductList(List<? extends PromotableProduct> relatedProducts)
Copyright © 2022. All rights reserved.