Interface MarketingMessageUtils

All Known Implementing Classes:
DefaultMarketingMessageUtils

public interface MarketingMessageUtils
Utilities to aid in the retrieval of MarketingMessages
Author:
Jon Fleschler (jfleschler)
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<LineItemDTO>
    buildLineItems(ProductList productDetails)
    Build LineItemDTOs from hydrated product details
    buildLineItems(ProductList productDetails, boolean buildForAllTermsAndFrequencies, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Build LineItemDTOs from hydrated product details.
  • Method Details

    • buildLineItems

      default List<LineItemDTO> buildLineItems(ProductList productDetails)
      Build LineItemDTOs from hydrated product details
      Parameters:
      productDetails - the hydrated product details
      Returns:
      list of LineItemDTOs
    • buildLineItems

      List<LineItemDTO> buildLineItems(ProductList productDetails, boolean buildForAllTermsAndFrequencies, @Nullable com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Build LineItemDTOs from hydrated product details.
      Parameters:
      productDetails - the hydrated product details
      buildForAllTermsAndFrequencies - whether to build LineItemDTOs for all available terms and frequencies for each product. If true, all available frequencies will be fetched based on Product.getTerms() and LineItemDTOs are built for each term and frequency combination.
      priceContext - the PriceContext containing details about the currency
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      list of LineItemDTOs
      Since:
      Catalog Browse Service 2.2.0, Release Train 2.3.0