org.broadleafcommerce.core.offer.service.workflow
Class VerifyCustomerMaxOfferUsesActivity
java.lang.Object
org.broadleafcommerce.core.workflow.BaseActivity<CheckoutContext>
org.broadleafcommerce.core.offer.service.workflow.VerifyCustomerMaxOfferUsesActivity
- All Implemented Interfaces:
- Activity<CheckoutContext>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.core.Ordered
public class VerifyCustomerMaxOfferUsesActivity
- extends BaseActivity<CheckoutContext>
Checks the offers being used in the order to make sure that the customer
has not exceeded the max uses for the Offer.
This will also verify that max uses for any OfferCodes that were used to retrieve the Offers.
- Author:
- Phillip Verheyden (phillipuniverse)
| Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Methods inherited from class org.broadleafcommerce.core.workflow.BaseActivity |
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
offerAuditService
protected OfferAuditService offerAuditService
offerService
protected OfferService offerService
VerifyCustomerMaxOfferUsesActivity
public VerifyCustomerMaxOfferUsesActivity()
execute
public CheckoutContext execute(CheckoutContext context)
throws Exception
- Description copied from interface:
Activity
- Called by the encompassing processor to activate
the execution of the Activity
- Parameters:
context - - process context for this workflow
- Returns:
- resulting process context
- Throws:
Exception
Copyright © 2013. All Rights Reserved.