Class CPQDefaultCartService
java.lang.Object
de.hybris.platform.sap.sapordermgmtservices.cart.impl.DefaultCartCheckoutBaseService
de.hybris.platform.sap.sapordermgmtservices.cart.impl.DefaultCartService
de.hybris.platform.sap.sapproductconfigsomservices.cart.impl.CPQDefaultCartService
- All Implemented Interfaces:
CartCheckoutBaseService,CartService,CPQCartService
Basic cart functions for SAP synchronous order management. In this case, the cart will be created in the back end
session, it does not touch the hybris persistence.
The class synchronizes accesses to the BOL object representing the cart, as this is not thread safe. Multi-threaded accesses can happen although we use request sequencing, since also filters might call cart facades.
The class synchronizes accesses to the BOL object representing the cart, as this is not thread safe. Multi-threaded accesses can happen although we use request sequencing, since also filters might call cart facades.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConfigurationToCart(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Adds a new configuration to the cart.getItemByKey(String itemKey) Does an item exist with a given key?updateConfigurationInCart(String key, de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Updates the configuration attached to an itemMethods inherited from class de.hybris.platform.sap.sapordermgmtservices.cart.impl.DefaultCartService
addEntriesToCart, addItemsToCart, addToCart, checkForDeletion, convertQuantity, convertToPositiveInt, createItemsFromOrderEntries, getCartItemConverter, getItemFactory, getMessageConverter, getSalesAreaService, getSessionService, isItemAvailable, setCartItemConverter, setItemFactory, setMessageConverter, setSalesAreaService, setSessionService, updateCartEntry, validateCartDataMethods inherited from class de.hybris.platform.sap.sapordermgmtservices.cart.impl.DefaultCartCheckoutBaseService
compileSessionCart, createEmptyCart, getCartConverter, getI18nService, getMessageSource, getSessionCart, getSessionCart, hasSessionCart, removeSessionCart, reverseCartSorting, reverseCartSorting, setBolCartFacade, setCartConverter, setI18nService, setMessageSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartCheckoutBaseService
getSessionCart, getSessionCart, hasSessionCart, removeSessionCartMethods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartService
addEntriesToCart, addItemsToCart, addToCart, isItemAvailable, updateCartEntry, validateCartData
-
Constructor Details
-
CPQDefaultCartService
public CPQDefaultCartService()
-
-
Method Details
-
addConfigurationToCart
public String addConfigurationToCart(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Description copied from interface:CPQCartServiceAdds a new configuration to the cart. A new item will be created, based on the root instance of the config model- Specified by:
addConfigurationToCartin interfaceCPQCartService- Parameters:
configModel- Configutation model, which will be added to the cart- Returns:
- Key of new item
-
updateConfigurationInCart
public String updateConfigurationInCart(String key, de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Description copied from interface:CPQCartServiceUpdates the configuration attached to an item- Specified by:
updateConfigurationInCartin interfaceCPQCartService- Parameters:
key- Key of existing itemconfigModel- Configuration- Returns:
- Key of updated item
-
getBolCartFacade
- Overrides:
getBolCartFacadein classDefaultCartCheckoutBaseService- Returns:
- the bolCartFacade
-
getItemByKey
Description copied from interface:CPQCartServiceDoes an item exist with a given key?- Specified by:
getItemByKeyin interfaceCPQCartService- Parameters:
itemKey- key for the item.- Returns:
- Does item exist for the item key?
-