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 retrieve
MarketingMessages
for a
MarketingMessageRequest
based on the Offers
the messages belong to, the
MarketingMessageLocationType
, and the MarketingMessageTargetType
.- Author:
- Jon Fleschler (jfleschler)
-
Method Summary
Modifier and TypeMethodDescriptionfindAllMarketingMessagesForRequest
(MarketingMessageRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all of theMarketingMessages
for the providedMarketingMessageRequest
.
-
Method Details
-
findAllMarketingMessagesForRequest
MarketingMessageResponse<P> findAllMarketingMessagesForRequest(MarketingMessageRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all of theMarketingMessages
for the providedMarketingMessageRequest
. This will find all the activeOffers
first, 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
- anMarketingMessageRequest
containing 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
-