@Service(value="blRelatedProductsService") public class RelatedProductsServiceImpl extends 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 List<? extends PromotableProduct> |
buildCrossSaleProductsList(Product product,
Category category,
RelatedProductDTO relatedProductDTO)
Returns the crossSale products for the past in product/category
|
protected List<? extends PromotableProduct> |
buildFeaturedProductsList(Product product,
Category category,
RelatedProductDTO relatedProductDTO)
Returns the featured products for the past in product/category
|
protected List<? extends PromotableProduct> |
buildUpSaleProductsList(Product product,
Category category,
RelatedProductDTO relatedProductDTO)
Returns the upSale products for the past in product/category
|
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 List<? extends PromotableProduct> |
resizeList(List<? extends PromotableProduct> originalList,
Integer qty)
Resizes the list to match the passed in quantity.
|
protected CategoryDao categoryDao
protected ProductDao productDao
protected CatalogService catalogService
public List<? extends PromotableProduct> findRelatedProducts(RelatedProductDTO relatedProductDTO)
RelatedProductsServicefindRelatedProducts in interface RelatedProductsServiceprotected List<? extends PromotableProduct> buildFeaturedProductsList(Product product, Category category, RelatedProductDTO relatedProductDTO)
product - category - relatedProductDTO - protected List<? extends PromotableProduct> buildUpSaleProductsList(Product product, Category category, RelatedProductDTO relatedProductDTO)
product - category - relatedProductDTO - protected List<? extends PromotableProduct> buildCrossSaleProductsList(Product product, Category category, RelatedProductDTO relatedProductDTO)
product - category - relatedProductDTO - protected List<? extends PromotableProduct> resizeList(List<? extends PromotableProduct> originalList, Integer qty)
originalList - qty - protected Product lookupProduct(RelatedProductDTO relatedProductDTO)
protected Category lookupCategory(RelatedProductDTO relatedProductDTO)
Copyright © 2015. All Rights Reserved.