Class ULIDGuestTokenGenerator
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.ULIDGuestTokenGenerator
-
- All Implemented Interfaces:
GuestTokenGenerator
public class ULIDGuestTokenGenerator extends Object implements GuestTokenGenerator
An implementation ofGuestTokenGenerator
that usesULID
to generate the token string.- Author:
- Nick Crum (ncrum)
-
-
Constructor Summary
Constructors Constructor Description ULIDGuestTokenGenerator(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.broadleafcommerce.cart.client.domain.GuestToken
generateGuestToken(String cartId)
Generates aGuestToken
for the given cart ID.Duration
getTokenTimeout()
protected com.broadleafcommerce.common.extension.TypeFactory
getTypeFactory()
void
setTokenTimeout(Duration tokenTimeout)
-
-
-
Method Detail
-
generateGuestToken
public com.broadleafcommerce.cart.client.domain.GuestToken generateGuestToken(String cartId)
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()
-
getTokenTimeout
public Duration getTokenTimeout()
-
setTokenTimeout
public void setTokenTimeout(Duration tokenTimeout)
-
-