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