public class InventoryAvailabilityValidationCheckoutWorkflowActivity extends Object implements CheckoutWorkflowActivity
Constructor and Description |
---|
InventoryAvailabilityValidationCheckoutWorkflowActivity(InventoryProvider inventoryProvider,
org.springframework.context.MessageSource messageSource) |
Modifier and Type | Method and Description |
---|---|
com.broadleafcommerce.cart.client.domain.Cart |
execute(com.broadleafcommerce.cart.client.domain.Cart cart,
String requestId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Method responsible for executing some work against the cart that is required for checkout.
|
protected InventoryProvider |
getInventoryProvider() |
protected org.springframework.context.MessageSource |
getMessageSource() |
com.broadleafcommerce.cart.client.domain.Cart |
rollback(com.broadleafcommerce.cart.client.domain.Cart cart,
String requestId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Method responsible for rolling back any work that was done during the execution of the
#execute(Cart, String) method. |
public InventoryAvailabilityValidationCheckoutWorkflowActivity(InventoryProvider inventoryProvider, org.springframework.context.MessageSource messageSource)
public com.broadleafcommerce.cart.client.domain.Cart execute(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
CheckoutWorkflowActivity
execute
in interface CheckoutWorkflowActivity
cart
- The Cart
that we're attempting to checkout with.requestId
- The id used to identify changes tied to the specific execution requestcontextInfo
- Context information around sandbox and multitenant state.public com.broadleafcommerce.cart.client.domain.Cart rollback(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
CheckoutWorkflowActivity
#execute(Cart, String)
method.rollback
in interface CheckoutWorkflowActivity
cart
- The Cart
that we were attempting to checkout with, but ran into an
exception/error.requestId
- The id used to identify changes tied to the specific execution requestcontextInfo
- Context information around sandbox and multitenant state.protected InventoryProvider getInventoryProvider()
protected org.springframework.context.MessageSource getMessageSource()
Copyright © 2021. All rights reserved.