public interface GuestCartProtectionService
Modifier and Type | Method and Description |
---|---|
void |
clearCustomerInformation(com.broadleafcommerce.cart.client.domain.Cart cart)
Clears customer information from the provided cart.
|
com.broadleafcommerce.cart.client.domain.GuestToken |
createGuestToken(String cartId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Creates a new guest token for the cart with the provided ID.
|
com.broadleafcommerce.cart.client.domain.GuestToken |
validateGuestToken(String cartId,
String guestToken,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Validates the provided guest token string for the given cart ID.
|
void clearCustomerInformation(com.broadleafcommerce.cart.client.domain.Cart cart)
Note, this method will not persist any changes to the cart. Instead,
CartOperationService.updateCart(Cart, boolean, boolean, boolean, ContextInfo)
should
be used to save the cart if the changes are meant to be permanent.
cart
- the cart to clearcom.broadleafcommerce.cart.client.domain.GuestToken createGuestToken(String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cartId
- the cart IDcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.GuestToken validateGuestToken(String cartId, String guestToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
GuestTokenValidationException
indicating the token failed to validate.cartId
- the cart IDguestToken
- the guest token stringcontextInfo
- the context infoCopyright © 2021. All rights reserved.