Interface OfferAuditDetailService<P extends OfferAuditDetail>
-
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultOfferAuditDetailService
public interface OfferAuditDetailService<P extends OfferAuditDetail> extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>- Author:
- Nathan Moore (nathanmoore).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LongcountByOffer(String offerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Count allOfferAuditDetailrecords that relate to the provided offer id.LongcountByOfferAndCode(String offerId, String code, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Count allOfferAuditDetailrecords that relate to the provided offer id and code.LongcountByOfferAndUser(String offerId, UserTarget userTarget, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Count allOfferAuditDetailrecords that relate to the provided offer id and user target.LongcountByOfferAndUserAndBetweenDates(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.-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
-
-
-
-
Method Detail
-
countByOffer
Long countByOffer(String offerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Count allOfferAuditDetailrecords that relate to the provided offer id.- Parameters:
offerId- The offer id to use to count relatedOfferAuditDetailrecords.contextInfo- context information around sandbox and multitenant state- Returns:
- all
OfferAuditDetailrecords that relate to the provided offer id.
-
countByOfferAndUser
Long countByOfferAndUser(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.
-
countByOfferAndCode
Long countByOfferAndCode(String offerId, String code, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Count allOfferAuditDetailrecords that relate to the provided offer id and code.- Parameters:
offerId- The offer id to use to count relatedOfferAuditDetailrecords.code- The code to use to count relatedOfferAuditDetailrecordscontextInfo- context information around sandbox and multitenant state- Returns:
- all
OfferAuditDetailrecords that relate to the provided offer id and code.
-
countByOfferAndUserAndBetweenDates
Long countByOfferAndUserAndBetweenDates(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.
-
-