Interface CustomizedOfferAuditDetailRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
-
- All Known Subinterfaces:
JpaOfferAuditDetailRepository<D>,OfferAuditDetailRepository<D>
- All Known Implementing Classes:
JpaCustomizedOfferAuditDetailRepository
public interface CustomizedOfferAuditDetailRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>- Author:
- Chad Harchar (charchar)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LongcountByOfferIdAndUser(String offerId, UserTarget userTarget, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Count allOfferAuditDetailrecords that relate to the provided offer id and user target.LongcountByOfferIdAndUserAndBetweenDates(String offerId, UserTarget userTarget, Instant startDate, Instant endDate, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Count allOfferAuditDetailrecords that relate to the provided offer id and user target and that fall between the given dates.
-
-
-
Method Detail
-
countByOfferIdAndUser
@Policy(operationTypes=READ) Long countByOfferIdAndUser(String offerId, UserTarget userTarget, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Count allOfferAuditDetailrecords that relate to the provided offer id and user target.- Parameters:
offerId- The offer id to use to count relatedOfferAuditDetailrecords.userTarget- The user target to use to count relatedOfferAuditDetailrecords.contextInfo- context information around sandbox and multitenant state- Returns:
- all
OfferAuditDetailrecords that relate to the provided offer id and user target.
-
countByOfferIdAndUserAndBetweenDates
@Policy(operationTypes=READ) Long countByOfferIdAndUserAndBetweenDates(String offerId, UserTarget userTarget, Instant startDate, Instant endDate, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Count allOfferAuditDetailrecords that relate to the provided offer id and user target and that fall between the given dates. Used to determineOffer.maxUsesPerUserFrequency.- Parameters:
offerId- The offer id to use to count relatedOfferAuditDetailrecords.userTarget- The user target to use to count relatedOfferAuditDetailrecords.startDate- The startInstantto count related records againstendDate- The endInstantto count related records againstcontextInfo- context information around sandbox and multitenant state- Returns:
- all
OfferAuditDetailrecords that relate to the provided offer id and user between the given dates.
-
-