Class ULIDGuestTokenGenerator

java.lang.Object
com.broadleafcommerce.cartoperation.service.ULIDGuestTokenGenerator
All Implemented Interfaces:
GuestTokenGenerator

public class ULIDGuestTokenGenerator extends Object implements GuestTokenGenerator
An implementation of GuestTokenGenerator that uses ULID to generate the token string.
Author:
Nick Crum (ncrum)
  • Constructor Details

    • ULIDGuestTokenGenerator

      public ULIDGuestTokenGenerator(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
  • Method Details

    • getTokenTimeout

      public Duration getTokenTimeout()
    • setTokenTimeout

      public void setTokenTimeout(Duration tokenTimeout)
    • generateGuestToken

      public com.broadleafcommerce.cart.client.domain.GuestToken generateGuestToken(String cartId)
      Description copied from interface: GuestTokenGenerator
      Generates a GuestToken for the given cart ID.
      Specified by:
      generateGuestToken in interface GuestTokenGenerator
      Parameters:
      cartId - the cart ID
      Returns:
      the guest token
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
    • getCheckoutProperties

      protected CartOperationCheckoutProperties getCheckoutProperties()
    • setCheckoutProperties

      @Autowired public void setCheckoutProperties(CartOperationCheckoutProperties checkoutProperties)