Class ULIDGuestTokenGenerator
java.lang.Object
com.broadleafcommerce.cartoperation.service.ULIDGuestTokenGenerator
- All Implemented Interfaces:
GuestTokenGenerator
An implementation of
GuestTokenGenerator
that uses ULID
to generate
the token string.- Author:
- Nick Crum (ncrum)
-
Constructor Summary
ConstructorDescriptionULIDGuestTokenGenerator
(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.cart.client.domain.GuestToken
generateGuestToken
(String cartId) Generates aGuestToken
for the given cart ID.protected CartOperationCheckoutProperties
protected com.broadleafcommerce.common.extension.TypeFactory
void
setCheckoutProperties
(CartOperationCheckoutProperties checkoutProperties) void
setTokenTimeout
(Duration tokenTimeout)
-
Constructor Details
-
ULIDGuestTokenGenerator
public ULIDGuestTokenGenerator(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
getTokenTimeout
-
setTokenTimeout
-
generateGuestToken
Description copied from interface:GuestTokenGenerator
Generates aGuestToken
for the given cart ID.- Specified by:
generateGuestToken
in interfaceGuestTokenGenerator
- Parameters:
cartId
- the cart ID- Returns:
- the guest token
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getCheckoutProperties
-
setCheckoutProperties
-