Interface CustomizedMarketingMessageRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

    • Method Detail

      • findAllActiveByQualifierAndTargetOffers

        @Policy(operationTypes=READ)
        List<D> findAllActiveByQualifierAndTargetOffers​(Collection<String> qualifierOfferIds,
                                                        Collection<String> targetOfferIds,
                                                        MarketingMessageRequest request,
                                                        @Nullable
                                                        com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Finds all active marketing messages for the given qualifier offer ids, target offer ids, and MarketingMessageRequest. "Active" means that the MarketingMessage.getActiveStartDate() is before now and the MarketingMessage.getActiveEndDate() is after now.
        Parameters:
        qualifierOfferIds - the ids of offers where the messages should be associated with the items that qualify.
        targetOfferIds - the ids of offers where the messages should be associated with the items that are targeted by the offer.
        request - an MarketingMessageRequest containing parameters by which the results will be filtered
        contextInfo - the context around sandboxing and multitenant state
        Returns:
        the marketing messages matching the given request and offers
      • findAllByOfferContextIdIn

        @NonNull
        @Policy(operationTypes=READ)
        org.springframework.data.domain.Page<D> findAllByOfferContextIdIn​(Collection<String> offerContextIds,
                                                                          @Nullable
                                                                          cz.jirutka.rsql.parser.ast.Node filters,
                                                                          @Nullable
                                                                          org.springframework.data.domain.Pageable pageInfo,
                                                                          @Nullable
                                                                          com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Finds all of the persistent MarketingMessages for the given Offer IDs.
        Parameters:
        offerContextIds - Offer IDs of the parent offers.
        filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
        pageInfo - Pagination information
        contextInfo - the context around sandboxing and multitenant state
        Returns:
        Paged result set of all marketing messages for the given offer IDs.