Class InventoryAvailabilityValidationCheckoutWorkflowActivity
- java.lang.Object
- 
- com.broadleafcommerce.cartoperation.service.checkout.workflow.activity.InventoryAvailabilityValidationCheckoutWorkflowActivity
 
- 
- All Implemented Interfaces:
- CheckoutWorkflowActivity
 
 public class InventoryAvailabilityValidationCheckoutWorkflowActivity extends Object implements CheckoutWorkflowActivity 
- 
- 
Constructor SummaryConstructors Constructor Description InventoryAvailabilityValidationCheckoutWorkflowActivity(InventoryProvider inventoryProvider, org.springframework.context.MessageSource messageSource)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description com.broadleafcommerce.cart.client.domain.Cartexecute(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 InventoryProvidergetInventoryProvider()protected org.springframework.context.MessageSourcegetMessageSource()com.broadleafcommerce.cart.client.domain.Cartrollback(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.
 
- 
- 
- 
Constructor Detail- 
InventoryAvailabilityValidationCheckoutWorkflowActivitypublic InventoryAvailabilityValidationCheckoutWorkflowActivity(InventoryProvider inventoryProvider, org.springframework.context.MessageSource messageSource) 
 
- 
 - 
Method Detail- 
executepublic com.broadleafcommerce.cart.client.domain.Cart execute(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Description copied from interface:CheckoutWorkflowActivityMethod responsible for executing some work against the cart that is required for checkout. This may include, but is not limited to, cart validation checks, inventory reservations, or payment authorizations.- Specified by:
- executein interface- CheckoutWorkflowActivity
- Parameters:
- cart- The- Cartthat we're attempting to checkout with.
- requestId- The id used to identify changes tied to the specific execution request
- contextInfo- Context information around sandbox and multitenant state.
- Returns:
- The final state of the cart following the execution of the activity.
 
 - 
rollbackpublic com.broadleafcommerce.cart.client.domain.Cart rollback(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Description copied from interface:CheckoutWorkflowActivityMethod responsible for rolling back any work that was done during the execution of the#execute(Cart, String)method.- Specified by:
- rollbackin interface- CheckoutWorkflowActivity
- Parameters:
- cart- The- Cartthat we were attempting to checkout with, but ran into an exception/error.
- requestId- The id used to identify changes tied to the specific execution request
- contextInfo- Context information around sandbox and multitenant state.
- Returns:
- The final state of the cart following the rollback of the activity.
 
 - 
getInventoryProviderprotected InventoryProvider getInventoryProvider() 
 - 
getMessageSourceprotected org.springframework.context.MessageSource getMessageSource() 
 
- 
 
-