Class CartStatusValidationHelper
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.checkout.workflow.activity.CartStatusValidationHelper
-
public class CartStatusValidationHelper extends Object
ThisCheckoutWorkflowActivity
is responsible for validating that the cart is able to be checked out, based on itsstatus
.
-
-
Constructor Summary
Constructors Constructor Description CartStatusValidationHelper(org.springframework.context.MessageSource messageSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.context.MessageSource
getMessageSource()
protected Set<String>
getValidCheckoutStatuses()
Retrieve the set of statuses which are considered valid to checkout.void
validateCartStatusForCheckout(@NonNull CheckoutProcessDto processDto)
Validates that the cart is in a status which is valid for checkout.
-
-
-
Method Detail
-
validateCartStatusForCheckout
public void validateCartStatusForCheckout(@NonNull @NonNull CheckoutProcessDto processDto)
Validates that the cart is in a status which is valid for checkout.- Parameters:
processDto
- TheCheckoutProcessDto
that we're attempting to checkout with.- Throws:
CheckoutWorkflowException
- if the cart status cannot be checked out
-
getValidCheckoutStatuses
protected Set<String> getValidCheckoutStatuses()
Retrieve the set of statuses which are considered valid to checkout.- Returns:
- The set of statuses which are considered valid to checkout.
-
getMessageSource
protected org.springframework.context.MessageSource getMessageSource()
-
-