Class OfferAuditServiceImpl
java.lang.Object
org.broadleafcommerce.core.offer.service.OfferAuditServiceImpl
- All Implemented Interfaces:
OfferAuditService
@Service("blOfferAuditService")
public class OfferAuditServiceImpl
extends Object
implements OfferAuditService
- Author:
- Phillip Verheyden (phillipuniverse)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncountOfferCodeUses(Long offerCodeId) Deprecated.countOfferCodeUses(Order order, Long offerCodeId) Counts how many times the given offer code has been used in the system.countUsesByAccount(Order order, Long accountId, Long offerId, Long minimumDaysPerUsage) Counts how many times the an offer has been used by an account This method will take into account if the Offer has already been applied to the Order so as not to prevent the Offer from applying to new items added to the Order by a CRS.countUsesByCustomer(Long customerId, Long offerId) Deprecated.countUsesByCustomer(Order order, Long customerId, Long offerId) Counts how many times the an offer has been used by a customer.countUsesByCustomer(Order order, Long customerId, Long offerId, Long minimumDaysPerUsage) Counts how many times the an offer has been used by a customer (within the passed in number of days if provided).create()Creates a new offer auditvoiddelete(OfferAudit offerAudit) readAuditById(Long offerAuditId) readOfferAuditsByOrderId(Long orderId) Read all audits by order idsave(OfferAudit offerAudit) Persists an audit record to the database
-
Field Details
-
offerAuditDao
-
-
Constructor Details
-
OfferAuditServiceImpl
public OfferAuditServiceImpl()
-
-
Method Details
-
readAuditById
- Specified by:
readAuditByIdin interfaceOfferAuditService
-
save
Description copied from interface:OfferAuditServicePersists an audit record to the database- Specified by:
savein interfaceOfferAuditService
-
delete
- Specified by:
deletein interfaceOfferAuditService
-
create
Description copied from interface:OfferAuditServiceCreates a new offer audit- Specified by:
createin interfaceOfferAuditService
-
countUsesByCustomer
Description copied from interface:OfferAuditServiceCounts how many times the an offer has been used by a customer. This method will take into account if the Offer has already been applied to the Order so as not to prevent the Offer from applying to new items added to the Order by a CRS.- Specified by:
countUsesByCustomerin interfaceOfferAuditService- Returns:
- number of times and offer has been used by a customer
-
countUsesByCustomer
public Long countUsesByCustomer(Order order, Long customerId, Long offerId, Long minimumDaysPerUsage) Description copied from interface:OfferAuditServiceCounts how many times the an offer has been used by a customer (within the passed in number of days if provided). This method will take into account if the Offer has already been applied to the Order so as not to prevent the Offer from applying to new items added to the Order by a CRS.- Specified by:
countUsesByCustomerin interfaceOfferAuditService- Returns:
- number of times and offer has been used by a customer
-
countUsesByAccount
Description copied from interface:OfferAuditServiceCounts how many times the an offer has been used by an account This method will take into account if the Offer has already been applied to the Order so as not to prevent the Offer from applying to new items added to the Order by a CRS.- Specified by:
countUsesByAccountin interfaceOfferAuditService- Returns:
- number of times and offer has been used by a customer
-
countUsesByCustomer
Deprecated.Description copied from interface:OfferAuditServiceCounts how many times the an offer has been used by a customer- Specified by:
countUsesByCustomerin interfaceOfferAuditService- Returns:
- number of times and offer has been used by a customer
-
countOfferCodeUses
Description copied from interface:OfferAuditServiceCounts how many times the given offer code has been used in the system. This method will take into account if the OfferCode has already been applied to the Order so as not to prevent the OfferCODE from applying to new items added to the Order by a CRS.- Specified by:
countOfferCodeUsesin interfaceOfferAuditService- Returns:
- number of times the offer code has been used
-
countOfferCodeUses
Deprecated.Description copied from interface:OfferAuditServiceCounts how many times the given offer code has been used in the system- Specified by:
countOfferCodeUsesin interfaceOfferAuditService- Returns:
- number of times the offer code has been used
-
readOfferAuditsByOrderId
Description copied from interface:OfferAuditServiceRead all audits by order id- Specified by:
readOfferAuditsByOrderIdin interfaceOfferAuditService- Returns:
-