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
Modifier and TypeMethodDescriptionreadAllByOfferCodeIds(Set<String> offerCodeIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer code ids.readAllByOfferCodeIdsInAndCustomerId(Set<String> offerCodeIds, String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer code ids and customer ID.readAllByOfferCodeIdsInAndCustomerTargetValue(Set<String> offerCodeIds, String customerTargetValue, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer code ids and customer ID.readAllByOfferIds(Set<String> offerIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer ids.readAllByOfferIdsInAndCustomerId(Set<String> offerIds, String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer ids and customer ID.readAllByOfferIdsInAndCustomerTargetValue(Set<String> offerIds, String customerTargetValue, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer ids and customer ID.recordOfferUsages(List<OfferUsageDetails> usageDetails, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Records offer usages specified in a list ofOfferUsageDetailsand persists the details inOfferAuditDetail,OfferAuditSummary, andSharedCodeAuditSummary.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, updateSortMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readAllByOfferIds
List<P> readAllByOfferIds(Set<String> offerIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer ids.- Parameters:
offerIds- The set of offer ids to use to fetch relatedOfferAuditDetailrecords.contextInfo- context information around sandbox and multitenant state- Returns:
- all
OfferAuditDetailrecords that relate to the provided offer ids.
-
readAllByOfferCodeIds
List<P> readAllByOfferCodeIds(Set<String> offerCodeIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer code ids.- Parameters:
offerCodeIds- The set of offer code ids to use to fetch relatedOfferAuditDetailrecords.contextInfo- context information around sandbox and multitenant state- Returns:
- all
OfferAuditDetailrecords that relate to the provided offer code ids.
-
readAllByOfferCodeIdsInAndCustomerId
List<P> readAllByOfferCodeIdsInAndCustomerId(Set<String> offerCodeIds, String customerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer code ids and customer ID.- Parameters:
offerCodeIds-customerId- The customer id to use to fetch relatedOfferAuditDetailrecordscontextInfo- context information around sandbox and multitenant state- Returns:
- all
OfferAuditDetailrecords that relate to the provided offer code ids and customer ID.
-
readAllByOfferCodeIdsInAndCustomerTargetValue
List<P> readAllByOfferCodeIdsInAndCustomerTargetValue(Set<String> offerCodeIds, String customerTargetValue, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer code ids and customer ID.- Parameters:
offerCodeIds- The set of offer code ids to use to fetch relatedOfferAuditDetailrecords.customerTargetValue- The customer id or email to use to fetch relatedOfferAuditDetailrecordscontextInfo- context information around sandbox and multitenant state- Returns:
- all
OfferAuditDetailrecords that relate to the provided offer code ids and customer ID.
-
readAllByOfferIdsInAndCustomerId
List<P> readAllByOfferIdsInAndCustomerId(Set<String> offerIds, String customerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer ids and customer ID.- Parameters:
offerIds- The set of offer ids to use to fetch relatedOfferAuditDetailrecords.customerId- The customer id to use to fetch relatedOfferAuditDetailrecordscontextInfo- context information around sandbox and multitenant state- Returns:
- all
OfferAuditDetailrecords that relate to the provided offer ids and customer ID.
-
readAllByOfferIdsInAndCustomerTargetValue
List<P> readAllByOfferIdsInAndCustomerTargetValue(Set<String> offerIds, String customerTargetValue, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allOfferAuditDetailrecords that relate to the provided offer ids and customer ID.- Parameters:
offerIds- The set of offer ids to use to fetch relatedOfferAuditDetailrecords.customerTargetValue- The customer id or email to use to fetch relatedOfferAuditDetailrecordscontextInfo- context information around sandbox and multitenant state- Returns:
- all
OfferAuditDetailrecords that relate to the provided offer ids and customer ID.
-
recordOfferUsages
List<P> recordOfferUsages(List<OfferUsageDetails> usageDetails, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Records offer usages specified in a list ofOfferUsageDetailsand persists the details inOfferAuditDetail,OfferAuditSummary, andSharedCodeAuditSummary.- Parameters:
usageDetails- the list ofOfferUsageDetailsto recordcontextInfo- context information around sandbox and multitenant state- Returns:
- all
OfferAuditDetailrecords that were persisted
-