org.broadleafcommerce.core.offer.service
Class OfferAuditServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.core.offer.service.OfferAuditServiceImpl
All Implemented Interfaces:
OfferAuditService

@Service(value="blOfferAuditService")
public class OfferAuditServiceImpl
extends Object
implements OfferAuditService

Author:
Phillip Verheyden (phillipuniverse)

Field Summary
protected  OfferAuditDao offerAuditDao
           
 
Constructor Summary
OfferAuditServiceImpl()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offerAuditDao

protected OfferAuditDao offerAuditDao
Constructor Detail

OfferAuditServiceImpl

public OfferAuditServiceImpl()
Method Detail

readAuditById

public OfferAudit readAuditById(Long offerAuditId)
Specified by:
readAuditById in interface OfferAuditService

save

@Transactional(value="blTransactionManager")
public OfferAudit save(OfferAudit offerAudit)
Description copied from interface: OfferAuditService
Persists an audit record to the database

Specified by:
save in interface OfferAuditService

delete

@Transactional(value="blTransactionManager")
public void delete(OfferAudit offerAudit)
Specified by:
delete in interface OfferAuditService

create

public OfferAudit create()
Description copied from interface: OfferAuditService
Creates a new offer audit

Specified by:
create in interface OfferAuditService

countUsesByCustomer

public Long countUsesByCustomer(Long customerId,
                                Long offerId)
Description copied from interface: OfferAuditService
Counts how many times the an offer has been used by a customer

Specified by:
countUsesByCustomer in interface OfferAuditService
Returns:

countOfferCodeUses

public Long countOfferCodeUses(Long offerCodeId)
Description copied from interface: OfferAuditService
Counts how many times the given offer code has been used in the system

Specified by:
countOfferCodeUses in interface OfferAuditService
Returns:


Copyright © 2013. All Rights Reserved.