@Service(value="blRelatedProductsService") public class RelatedProductsServiceImpl extends java.lang.Object implements RelatedProductsService
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected CategoryDao |
categoryDao |
protected ProductDao |
productDao |
| Constructor and Description |
|---|
RelatedProductsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<? extends PromotableProduct> |
buildCrossSaleProductsList(Product product,
Category category,
RelatedProductDTO relatedProductDTO)
Returns the crossSale products for the past in product/category
|
protected java.util.List<? extends PromotableProduct> |
buildFeaturedProductsList(Product product,
Category category,
RelatedProductDTO relatedProductDTO)
Returns the featured products for the past in product/category
|
protected java.util.List<? extends PromotableProduct> |
buildUpSaleProductsList(Product product,
Category category,
RelatedProductDTO relatedProductDTO)
Returns the upSale products for the past in product/category
|
java.util.List<? extends PromotableProduct> |
findRelatedProducts(RelatedProductDTO relatedProductDTO)
Uses the data in the passed in DTO to return a list of relatedProducts.
|
protected Category |
lookupCategory(RelatedProductDTO relatedProductDTO) |
protected Product |
lookupProduct(RelatedProductDTO relatedProductDTO) |
protected java.util.List<? extends PromotableProduct> |
resizeList(java.util.List<? extends PromotableProduct> originalList,
java.lang.Integer qty)
Resizes the list to match the passed in quantity.
|
protected CategoryDao categoryDao
protected ProductDao productDao
protected CatalogService catalogService
public java.util.List<? extends PromotableProduct> findRelatedProducts(RelatedProductDTO relatedProductDTO)
RelatedProductsServicefindRelatedProducts in interface RelatedProductsServiceprotected java.util.List<? extends PromotableProduct> buildFeaturedProductsList(Product product, Category category, RelatedProductDTO relatedProductDTO)
product - category - relatedProductDTO - protected java.util.List<? extends PromotableProduct> buildUpSaleProductsList(Product product, Category category, RelatedProductDTO relatedProductDTO)
product - category - relatedProductDTO - protected java.util.List<? extends PromotableProduct> buildCrossSaleProductsList(Product product, Category category, RelatedProductDTO relatedProductDTO)
product - category - relatedProductDTO - protected java.util.List<? extends PromotableProduct> resizeList(java.util.List<? extends PromotableProduct> originalList, java.lang.Integer qty)
originalList - qty - protected Product lookupProduct(RelatedProductDTO relatedProductDTO)
protected Category lookupCategory(RelatedProductDTO relatedProductDTO)
Copyright © 2018. All Rights Reserved.