Class VerifyCustomerMaxOfferUsesActivity
java.lang.Object
org.broadleafcommerce.core.workflow.BaseActivity<ProcessContext<CheckoutSeed>>
org.broadleafcommerce.core.offer.service.workflow.VerifyCustomerMaxOfferUsesActivity
- All Implemented Interfaces:
Activity<ProcessContext<CheckoutSeed>>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.core.Ordered
@Component("blVerifyCustomerMaxOfferUsesActivity")
public class VerifyCustomerMaxOfferUsesActivity
extends BaseActivity<ProcessContext<CheckoutSeed>>
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)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OfferAuditServiceprotected OfferServicestatic final intFields inherited from class org.broadleafcommerce.core.workflow.BaseActivity
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfigurationFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ProcessContext<CheckoutSeed> context) Called by the encompassing processor to activate the execution of the ActivityMethods inherited from class org.broadleafcommerce.core.workflow.BaseActivity
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecute
-
Field Details
-
ORDER
public static final int ORDER- See Also:
-
offerAuditService
-
offerService
-
-
Constructor Details
-
VerifyCustomerMaxOfferUsesActivity
public VerifyCustomerMaxOfferUsesActivity()
-
-
Method Details