public interface AdvancedOfferPromotionMessageService
| Modifier and Type | Method and Description |
|---|---|
List<org.broadleafcommerce.core.offer.domain.Offer> |
filterOutInactiveOffersByDateAndTime(List<org.broadleafcommerce.core.offer.domain.Offer> offers)
This method is intended to provide an opportunity to filter the results of
findActiveOffersWithPromotionMessages() if you require precise control
of the Offer's active start/end dates. |
List<org.broadleafcommerce.core.offer.domain.Offer> |
findActiveOffersWithPromotionMessages()
Gathers a list of
AdvancedOffers that have PromotionMessages. |
List<org.broadleafcommerce.core.promotionMessage.domain.PromotionMessage> |
findActivePromotionMessagesForOrderItem(org.broadleafcommerce.core.order.domain.OrderItem orderItem)
Gathers the set of active
PromotionMessages for the given OrderItem. |
Map<String,List<org.broadleafcommerce.core.promotionMessage.dto.PromotionMessageDTO>> |
findActivePromotionMessagesForProduct(org.broadleafcommerce.core.catalog.domain.Product product)
Gathers the set of active
PromotionMessages for the given Product. |
Map<String,List<org.broadleafcommerce.core.promotionMessage.dto.PromotionMessageDTO>> findActivePromotionMessagesForProduct(org.broadleafcommerce.core.catalog.domain.Product product)
PromotionMessages for the given Product.product - PromotionMessages for the given ProductList<org.broadleafcommerce.core.promotionMessage.domain.PromotionMessage> findActivePromotionMessagesForOrderItem(org.broadleafcommerce.core.order.domain.OrderItem orderItem)
PromotionMessages for the given OrderItem.orderItem - PromotionMessages for the given OrderItemList<org.broadleafcommerce.core.offer.domain.Offer> findActiveOffersWithPromotionMessages()
AdvancedOffers that have PromotionMessages.
Out of box, this method maintains cached results for 10 minutes.
filterOutInactiveOffersByDateAndTime(List) is intended to provide an
opportunity to filter the results of that method if you require precise control of the active start/end dates.
Alternatively, you could override AdvancedOfferPromotionMessageDao.getCurrentDateResolution() to modify
the cache entry's effective range.AdvancedOffers that have PromotionMessagesList<org.broadleafcommerce.core.offer.domain.Offer> filterOutInactiveOffersByDateAndTime(List<org.broadleafcommerce.core.offer.domain.Offer> offers)
findActiveOffersWithPromotionMessages() if you require precise control
of the Offer's active start/end dates. Out of box, that method maintains cached results for 10 minutes, so results may
become inaccurate in that time frame. Alternatively, you could override
AdvancedOfferPromotionMessageDao.getCurrentDateResolution() to modify the cache entry's effective range.Copyright © 2020. All rights reserved.