Interface CustomizedMarketingMessageRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
-
- All Known Subinterfaces:
JpaMarketingMessageRepository<D>,MarketingMessageRepository<D>
- All Known Implementing Classes:
JpaCustomizedMarketingMessageRepository
public interface CustomizedMarketingMessageRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>Adds customized methods for dealing withMarketingMessagepersistence.- Author:
- Nathan Moore (nathanmoore).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description List<D>findAllActiveByQualifierAndTargetOffers(Collection<String> qualifierOfferIds, Collection<String> targetOfferIds, MarketingMessageRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Finds all active marketing messages for the given qualifier offer ids, target offer ids, andMarketingMessageRequest.List<D>findAllActiveByQualifierAndTargetOffersAndRequest(Collection<String> qualifierOfferIds, Collection<String> targetOfferIds, ItemMarketingMessageRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Deprecated.org.springframework.data.domain.Page<D>findAllByOfferContextIdIn(Collection<String> offerContextIds, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Finds all of the persistentMarketingMessagesfor the givenOffer IDs.
-
-
-
Method Detail
-
findAllActiveByQualifierAndTargetOffersAndRequest
@Deprecated @Policy(operationTypes=READ) List<D> findAllActiveByQualifierAndTargetOffersAndRequest(Collection<String> qualifierOfferIds, Collection<String> targetOfferIds, ItemMarketingMessageRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.Finds all active marketing messages for the given qualifier offer ids, target offer ids, andItemMarketingMessageRequest. "Active" means that theMarketingMessage.getActiveStartDate()is before now and theMarketingMessage.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- anItemMarketingMessageRequestcontaining the parameters by which the results will be filteredcontextInfo- the context around sandboxing and multitenant state- Returns:
- the marketing messages matching the given request and offers
-
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, andMarketingMessageRequest. "Active" means that theMarketingMessage.getActiveStartDate()is before now and theMarketingMessage.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- anMarketingMessageRequestcontaining parameters by which the results will be filteredcontextInfo- 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 persistentMarketingMessagesfor the givenOffer IDs.- Parameters:
offerContextIds-Offer IDsof the parent offers.filters- additional filters to apply in the query. Should beEmptyNodeif no additional filters should be applied.pageInfo- Pagination informationcontextInfo- the context around sandboxing and multitenant state- Returns:
- Paged result set of all marketing messages for the given offer IDs.
-
-