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 Details

    • readAllByOfferIds

      List<P> readAllByOfferIds(Set<String> offerIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find all OfferAuditDetail records that relate to the provided offer ids.
      Parameters:
      offerIds - The set of offer ids to use to fetch related OfferAuditDetail records.
      contextInfo - context information around sandbox and multitenant state
      Returns:
      all OfferAuditDetail records that relate to the provided offer ids.
    • readAllByOfferCodeIds

      List<P> readAllByOfferCodeIds(Set<String> offerCodeIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find all OfferAuditDetail records that relate to the provided offer code ids.
      Parameters:
      offerCodeIds - The set of offer code ids to use to fetch related OfferAuditDetail records.
      contextInfo - context information around sandbox and multitenant state
      Returns:
      all OfferAuditDetail records 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 all OfferAuditDetail records that relate to the provided offer code ids and customer ID.
      Parameters:
      offerCodeIds -
      customerId - The customer id to use to fetch related OfferAuditDetail records
      contextInfo - context information around sandbox and multitenant state
      Returns:
      all OfferAuditDetail records 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 all OfferAuditDetail records that relate to the provided offer code ids and customer ID.
      Parameters:
      offerCodeIds - The set of offer code ids to use to fetch related OfferAuditDetail records.
      customerTargetValue - The customer id or email to use to fetch related OfferAuditDetail records
      contextInfo - context information around sandbox and multitenant state
      Returns:
      all OfferAuditDetail records 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 all OfferAuditDetail records that relate to the provided offer ids and customer ID.
      Parameters:
      offerIds - The set of offer ids to use to fetch related OfferAuditDetail records.
      customerId - The customer id to use to fetch related OfferAuditDetail records
      contextInfo - context information around sandbox and multitenant state
      Returns:
      all OfferAuditDetail records 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 all OfferAuditDetail records that relate to the provided offer ids and customer ID.
      Parameters:
      offerIds - The set of offer ids to use to fetch related OfferAuditDetail records.
      customerTargetValue - The customer id or email to use to fetch related OfferAuditDetail records
      contextInfo - context information around sandbox and multitenant state
      Returns:
      all OfferAuditDetail records 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 of OfferUsageDetails and persists the details in OfferAuditDetail, OfferAuditSummary, and SharedCodeAuditSummary.
      Parameters:
      usageDetails - the list of OfferUsageDetails to record
      contextInfo - context information around sandbox and multitenant state
      Returns:
      all OfferAuditDetail records that were persisted