public class ULIDGuestTokenGenerator extends Object implements GuestTokenGenerator
GuestTokenGenerator
that uses ULID
to generate
the token string.Constructor and Description |
---|
ULIDGuestTokenGenerator(com.broadleafcommerce.common.extension.TypeFactory typeFactory) |
Modifier and Type | Method and Description |
---|---|
com.broadleafcommerce.cart.client.domain.GuestToken |
generateGuestToken(String cartId)
Generates a
GuestToken for the given cart ID. |
Duration |
getTokenTimeout() |
protected com.broadleafcommerce.common.extension.TypeFactory |
getTypeFactory() |
void |
setTokenTimeout(Duration tokenTimeout) |
public ULIDGuestTokenGenerator(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
public com.broadleafcommerce.cart.client.domain.GuestToken generateGuestToken(String cartId)
GuestTokenGenerator
GuestToken
for the given cart ID.generateGuestToken
in interface GuestTokenGenerator
cartId
- the cart IDprotected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
public Duration getTokenTimeout()
public void setTokenTimeout(Duration tokenTimeout)
Copyright © 2021. All rights reserved.