org.broadleafcommerce.core.offer.service.workflow
Class RecordOfferUsageActivity
java.lang.Object
org.broadleafcommerce.core.workflow.BaseActivity<CheckoutContext>
org.broadleafcommerce.core.offer.service.workflow.RecordOfferUsageActivity
- All Implemented Interfaces:
- Activity<CheckoutContext>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.core.Ordered
public class RecordOfferUsageActivity
- extends BaseActivity<CheckoutContext>
Saves an instance of OfferAudit for each offer in the passed in order.
Assumes that it is part of a larger transaction context.
| 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 |
RecordOfferUsageActivity
public RecordOfferUsageActivity()
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
saveOfferIds
protected void saveOfferIds(Set<Long> offerIds,
Order order)
addOfferIds
protected void addOfferIds(List<? extends Adjustment> adjustments,
Set<Long> offerIds)
Copyright © 2013. All Rights Reserved.