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

Type Parameters:
D - Type of Trackable entity. Should be the persistent counterpart to a PromotionalProduct.
All Known Subinterfaces:
JpaPromotionalProductRepository<D>, PromotionalProductRepository<D>
All Known Implementing Classes:
JpaCustomizedPromotionalProductRepository

public interface CustomizedPromotionalProductRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
Advanced functionality related to PromotionalProduct maintenance and filtering.
Author:
Sunny Yu
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    countNonProductionRecordsByProductIdsInTenant(Iterable<String> productContextIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Returns the count of non-production records that match the given productContextIds and the given tenant context.
  • Method Details

    • countNonProductionRecordsByProductIdsInTenant

      @Policy(operationTypes=READ) long countNonProductionRecordsByProductIdsInTenant(@NonNull Iterable<String> productContextIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Returns the count of non-production records that match the given productContextIds and the given tenant context.
      Parameters:
      productContextIds - IDs of parent Products to match against
      context - Request context information around sandbox and multitenant state
      Returns:
      the count of non-production records that match the given productContextIds and the given tenant context