Interface MarketingMessageOfferCandidateService<P extends Offer>

    • Method Detail

      • getCandidateOffers

        @Deprecated
        Stream<P> getCandidateOffers​(ItemMarketingMessageRequest request,
                                     @Nullable
                                     com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Deprecated.
        since 1.6
        Finds all the active Offers that match the CustomerContext or are to be automatically considered.
        Parameters:
        request - The ItemMarketingMessageRequest containing context info for determining the correct messages
        contextInfo - context information related to multitenancy. Often used to validate visibility and mutability of persistence operations for a catalog.
        Returns:
        All the active Offers that match the CustomerContext or are to be automatically considered.
      • isCriteriaMatched

        boolean isCriteriaMatched​(@NonNull
                                  @NonNull EnhancedLineItem item,
                                  @NonNull
                                  @NonNull ItemCriteria criteria)
        Determines whether the EnhancedLineItem matches the ItemCriteria. Since there's no order yet, usually, this will only check the ItemCriteriaRule#getRule() rule expression} for each rule and not the number of matches required.
        Parameters:
        item - Item to determine whether it matches the criteria
        criteria - Criteria to match
        Returns:
        Whether item matches criteria.