Interface MarketingMessageResolver<P extends MarketingMessage,O extends Offer>
-
- All Known Implementing Classes:
DefaultMarketingMessageResolver
public interface MarketingMessageResolver<P extends MarketingMessage,O extends Offer>Service API to retrieveMarketingMessagesfor aMarketingMessageRequestbased on theOffersthe messages belong to, theMarketingMessageLocationType, and theMarketingMessageTargetType.- Author:
- Jon Fleschler (jfleschler)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MarketingMessageResponse<P>findAllMarketingMessagesForRequest(MarketingMessageRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Finds all of theMarketingMessagesfor the providedMarketingMessageRequest.
-
-
-
Method Detail
-
findAllMarketingMessagesForRequest
MarketingMessageResponse<P> findAllMarketingMessagesForRequest(MarketingMessageRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Finds all of theMarketingMessagesfor the providedMarketingMessageRequest. This will find all the activeOffersfirst, then split them into two, filtered groups: Those that treat theMarketingMessageRequest.getLineItems()as a target and those that treat it as a qualifier. Then, it will fetch all messages for those offers, grouping byMarketingMessageLocationType, filter by active date range and sort them by priority.- Parameters:
request- anMarketingMessageRequestcontaining the parameters by which the results will be filteredcontextInfo- the context information around sandboxing and multitenant state- Returns:
- the marketing messages for the given item in priority order
-
-