|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.catalog.service.RelatedProductsServiceImpl
@Service(value="blRelatedProductsService") public class RelatedProductsServiceImpl
| Field Summary | |
|---|---|
protected CatalogService |
catalogService
|
protected CategoryDao |
categoryDao
|
protected ProductDao |
productDao
|
| Constructor Summary | |
|---|---|
RelatedProductsServiceImpl()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CategoryDao categoryDao
protected ProductDao productDao
protected CatalogService catalogService
| Constructor Detail |
|---|
public RelatedProductsServiceImpl()
| Method Detail |
|---|
public List<? extends PromotableProduct> findRelatedProducts(RelatedProductDTO relatedProductDTO)
RelatedProductsService
findRelatedProducts in interface RelatedProductsService
protected 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||