Class DefaultCartRestorationService

  • All Implemented Interfaces:
    CartRestorationService

    public class DefaultCartRestorationService
    extends java.lang.Object
    implements CartRestorationService
    Default implementation of the restoration service. Task of this class is to create a BOL representation of the cart (which has a counterpart in the SAP back end) from a persisted hybris cart.
    • Field Detail

      • SESSION_CART_PARAMETER_NAME

        protected static java.lang.String SESSION_CART_PARAMETER_NAME
        Hybris session cart is stored in hybris session using this key
    • Constructor Detail

      • DefaultCartRestorationService

        public DefaultCartRestorationService()
    • Method Detail

      • createItemsFromCart

        protected java.util.List<Item> createItemsFromCart​(CartModel fromCart)
        Creates a list of BOL items from a hybris cart model. Those cart items carry following attributes copied from the entities of type AbstractOrderEntryModel:
      • ProductId
      • Quantity
Parameters:
fromCart - Cart model
Returns:
List of BOL items