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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected org.broadleafcommerce.core.catalog.service.CatalogServiceprotected List<org.broadleafcommerce.core.promotionMessage.service.PromotionMessageGenerator> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,List<PromotionMessageDTOWrapper>> buildMapOfWrappers(jakarta.servlet.http.HttpServletRequest request, Map<String, List<org.broadleafcommerce.core.promotionMessage.dto.PromotionMessageDTO>> promotionMessages) findPromotionMessagesForProduct(jakarta.servlet.http.HttpServletRequest request, Long productId) Search forPromotionMessagesbyProductvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
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:PromotionMessageDTOWrapperServiceSearch forPromotionMessagesbyProduct- Specified by:
findPromotionMessagesForProductin interfacePromotionMessageDTOWrapperService- Returns:
- the promotion message for the given product
-
buildMapOfWrappers
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-