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 with MarketingMessage persistence.
Author:
Nathan Moore (nathanmoore).
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllByOfferContextIdIn(Collection<String> offerContextIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    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 persistent MarketingMessages for the given Offer IDs.
    findAllNonExpired(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all of the persistent MarketingMessages that are not expired meaning the MarketingMessage.activeEndDate is not null and is not in the past.
  • Method Details

    • 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.
    • findAllByOfferContextIdIn

      @Policy(operationTypes=READ) List<D> findAllByOfferContextIdIn(Collection<String> offerContextIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • findAllNonExpired

      @Policy(operationTypes=READ) List<D> findAllNonExpired(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all of the persistent MarketingMessages that are not expired meaning the MarketingMessage.activeEndDate is not null and is not in the past. Note, that the messages referenced offer may still be expired and should be verified by calling services.
      Parameters:
      contextInfo - the context around sandboxing and multitenant state
      Returns:
      List of all non-expired marketing messages