Class PromotionMessageDTOWrapperServiceImpl

java.lang.Object
com.broadleafcommerce.rest.api.wrapper.service.promotionmessage.PromotionMessageDTOWrapperServiceImpl
All Implemented Interfaces:
PromotionMessageDTOWrapperService, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Service("blPromotionMessageDTOWrapperService") public class PromotionMessageDTOWrapperServiceImpl extends Object implements PromotionMessageDTOWrapperService, org.springframework.context.ApplicationContextAware
Author:
Chris Kittrell (ckittrell)
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • catalogService

      protected org.broadleafcommerce.core.catalog.service.CatalogService catalogService
    • generators

      protected List<org.broadleafcommerce.core.promotionMessage.service.PromotionMessageGenerator> generators
  • Constructor Details

    • PromotionMessageDTOWrapperServiceImpl

      public PromotionMessageDTOWrapperServiceImpl()
  • Method Details

    • findPromotionMessagesForProduct

      public Map<String,List<PromotionMessageDTOWrapper>> findPromotionMessagesForProduct(jakarta.servlet.http.HttpServletRequest request, Long productId)
      Description copied from interface: PromotionMessageDTOWrapperService
      Search for PromotionMessages by Product
      Specified by:
      findPromotionMessagesForProduct in interface PromotionMessageDTOWrapperService
      Returns:
      the promotion message for the given product
    • buildMapOfWrappers

      protected Map<String,List<PromotionMessageDTOWrapper>> buildMapOfWrappers(jakarta.servlet.http.HttpServletRequest request, Map<String,List<org.broadleafcommerce.core.promotionMessage.dto.PromotionMessageDTO>> promotionMessages)
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException