Class CheckoutRollbackEvent
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.messaging.rollback.CheckoutRollbackEvent
-
- All Implemented Interfaces:
Serializable
public class CheckoutRollbackEvent extends Object implements Serializable
A message event dispatched when aCheckoutWorkflow
encounters an unrecoverable error & must roll back the work of itsCheckoutWorkflowActivities
. This event should primarily be consumed in this service as a means of triggering each activity'sCheckoutWorkflowActivity#rollback(Cart, String)
method.- Author:
- Chris Kittrell (ckittrell)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CheckoutRollbackEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCartId()
The id of the cart that was submitted for checkoutcom.broadleafcommerce.data.tracking.core.context.ContextInfo
getContextInfo()
TheContextInfo
derived from the original request containing tenant and sandbox info.String
getRequestId()
The id representing this request to checkout This value can be used to identify entities that were produced due to this request and therefore need to be rolled backvoid
setCartId(String cartId)
The id of the cart that was submitted for checkoutvoid
setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
TheContextInfo
derived from the original request containing tenant and sandbox info.void
setRequestId(String requestId)
The id representing this request to checkout This value can be used to identify entities that were produced due to this request and therefore need to be rolled back
-
-
-
Method Detail
-
getCartId
public String getCartId()
The id of the cart that was submitted for checkout- Returns:
- The id of the cart that was submitted for checkout
-
getRequestId
public String getRequestId()
The id representing this request to checkout This value can be used to identify entities that were produced due to this request and therefore need to be rolled back- Returns:
- The id representing this request to checkout
-
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()
TheContextInfo
derived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfo
derived from the original request
-
setCartId
public void setCartId(String cartId)
The id of the cart that was submitted for checkout
-
setRequestId
public void setRequestId(String requestId)
The id representing this request to checkout This value can be used to identify entities that were produced due to this request and therefore need to be rolled back
-
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
TheContextInfo
derived from the original request containing tenant and sandbox info.
-
-