Interface MarketingMessageOfferCandidateService<P extends Offer>
-
- All Known Implementing Classes:
DefaultMarketingMessageOfferCandidateService
public interface MarketingMessageOfferCandidateService<P extends Offer>This service is responsible for finding all the activeOffersrelated to aEnhancedLineItemin order to provide theItemMarketingMessageResolverto retrieve every relevantMarketingMessage.- Author:
- Samarth Dhruva (samarthd)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Stream<P>getCandidateOffers(ItemMarketingMessageRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Deprecated.since 1.6booleanisCriteriaMatched(@NonNull EnhancedLineItem item, @NonNull ItemCriteria criteria)Determines whether theEnhancedLineItemmatches theItemCriteria.
-
-
-
Method Detail
-
getCandidateOffers
@Deprecated Stream<P> getCandidateOffers(ItemMarketingMessageRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.since 1.6Finds all the activeOffersthat match theCustomerContextor are to be automatically considered.- Parameters:
request- TheItemMarketingMessageRequestcontaining context info for determining the correct messagescontextInfo- context information related to multitenancy. Often used to validate visibility and mutability of persistence operations for a catalog.- Returns:
- All the active
Offersthat match theCustomerContextor are to be automatically considered.
-
isCriteriaMatched
boolean isCriteriaMatched(@NonNull @NonNull EnhancedLineItem item, @NonNull @NonNull ItemCriteria criteria)Determines whether theEnhancedLineItemmatches theItemCriteria. Since there's no order yet, usually, this will only check theItemCriteriaRule#getRule()rule expression} for eachruleand not thenumber of matches required.- Parameters:
item- Item to determine whether it matches the criteriacriteria- Criteria to match- Returns:
- Whether
itemmatchescriteria.
-
-