Class RelatedProductsVariableExpression

java.lang.Object
org.broadleafcommerce.core.web.expression.RelatedProductsVariableExpression
All Implemented Interfaces:
org.broadleafcommerce.common.web.expression.BroadleafVariableExpression

@Component("blRelatedProductsVariableExpression") public class RelatedProductsVariableExpression extends Object implements org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
Author:
Nick Crum ncrum
  • Constructor Details

    • RelatedProductsVariableExpression

      @Autowired public RelatedProductsVariableExpression(org.broadleafcommerce.core.catalog.service.RelatedProductsService relatedProductsService)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
    • findByProduct

      public List<org.broadleafcommerce.core.catalog.domain.Product> findByProduct(Long productId)
    • findByProduct

      public List<org.broadleafcommerce.core.catalog.domain.Product> findByProduct(Long productId, Integer quantity)
    • findByCategory

      public List<org.broadleafcommerce.core.catalog.domain.Product> findByCategory(Long categoryId, Integer quantity)
    • findByProduct

      public List<org.broadleafcommerce.core.catalog.domain.Product> findByProduct(Long productId, Integer quantity, String type)
    • findByCategory

      public List<org.broadleafcommerce.core.catalog.domain.Product> findByCategory(Long categoryId, Integer quantity, String type)
    • getRelatedProducts

      public List<org.broadleafcommerce.core.catalog.domain.Product> getRelatedProducts(Long productId, Long categoryId, Integer quantity, String type)
    • isFeaturedProduct

      public boolean isFeaturedProduct(Long productId)
    • buildProductList

      protected List<org.broadleafcommerce.core.catalog.domain.Product> buildProductList(List<? extends org.broadleafcommerce.core.catalog.domain.PromotableProduct> relatedProducts)