Class DefaultMarketingMessageUtils
- java.lang.Object
-
- com.broadleafcommerce.catalogbrowse.service.DefaultMarketingMessageUtils
-
- All Implemented Interfaces:
MarketingMessageUtils
public class DefaultMarketingMessageUtils extends Object implements MarketingMessageUtils
Utilities to aid in the retrieval ofMarketingMessages- Author:
- Jon Fleschler (jfleschler)
-
-
Constructor Summary
Constructors Constructor Description DefaultMarketingMessageUtils(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LineItemDTObuildLineItemFromVariant(Product product, Variant variant)List<LineItemDTO>buildLineItems(ProductList productDetails)BuildLineItemDTOs from hydrated product detailsprotected List<String>getCategoryIds(Map<String,Object> attributes)protected com.broadleafcommerce.common.extension.TypeFactorygetTypeFactory()protected voidpopulateLineItemPricing(LineItemDTO item, com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo)
-
-
-
Method Detail
-
buildLineItems
public List<LineItemDTO> buildLineItems(ProductList productDetails)
Description copied from interface:MarketingMessageUtilsBuildLineItemDTOs from hydrated product details- Specified by:
buildLineItemsin interfaceMarketingMessageUtils- Parameters:
productDetails- the hydrated product details- Returns:
- list of
LineItemDTOs
-
buildLineItemFromVariant
protected LineItemDTO buildLineItemFromVariant(Product product, Variant variant)
-
populateLineItemPricing
protected void populateLineItemPricing(LineItemDTO item, com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo)
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-
-