org.broadleafcommerce.core.offer.dao
Interface OfferAuditDao

All Known Implementing Classes:
OfferAuditDaoImpl

public interface OfferAuditDao

DAO for auditing what went on with offers being added to an order

Author:
Phillip Verheyden (phillipuniverse)
See Also:
VerifyCustomerMaxOfferUsesActivity}, {@link RecordOfferUsageActivity}, {@link OfferService#verifyMaxCustomerUsageThreshold(org.broadleafcommerce.profile.core.domain.Customer, org.broadleafcommerce.core.offer.domain.OfferCode)}

Method Summary
 Long countOfferCodeUses(Long offerCodeId)
          Counts how many times the given offer code has been used in the system
 Long countUsesByCustomer(Long customerId, Long offerId)
          Counts how many times the an offer has been used by a customer
 OfferAudit create()
          Creates a new offer audit
 void delete(OfferAudit offerAudit)
           
 OfferAudit readAuditById(Long offerAuditId)
           
 OfferAudit save(OfferAudit offerAudit)
          Persists an audit record to the database
 

Method Detail

readAuditById

OfferAudit readAuditById(Long offerAuditId)

save

OfferAudit save(OfferAudit offerAudit)
Persists an audit record to the database


delete

void delete(OfferAudit offerAudit)

create

OfferAudit create()
Creates a new offer audit


countUsesByCustomer

Long countUsesByCustomer(Long customerId,
                         Long offerId)
Counts how many times the an offer has been used by a customer

Parameters:
customerId -
offerId -
Returns:

countOfferCodeUses

Long countOfferCodeUses(Long offerCodeId)
Counts how many times the given offer code has been used in the system

Parameters:
offerCodeId -
Returns:


Copyright © 2013. All Rights Reserved.