Interface CustomizedPromotionalProductRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- Type Parameters:
D
- Type ofTrackable
entity. Should be the persistent counterpart to aPromotionalProduct
.
- 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 TypeMethodDescriptionlong
countNonProductionRecordsByProductIdsInTenant
(Iterable<String> productContextIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Returns the count of non-production records that match the givenproductContextIds
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 givenproductContextIds
and the given tenant context.- Parameters:
productContextIds
- IDs of parent Products to match againstcontext
- 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
-