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
public class CPQDefaultCartService extends DefaultCartService implements 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.
-
-
Constructor Summary
Constructors Constructor Description CPQDefaultCartService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaddConfigurationToCart(ConfigModel configModel)Adds a new configuration to the cart.CPQBolCartFacadegetBolCartFacade()ItemgetItemByKey(java.lang.String itemKey)Does an item exist with a given key?java.lang.StringupdateConfigurationInCart(java.lang.String key, ConfigModel configModel)Updates the configuration attached to an item-
Methods 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, validateCartData
-
Methods 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, setMessageSource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartCheckoutBaseService
getSessionCart, getSessionCart, hasSessionCart, removeSessionCart
-
Methods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartService
addEntriesToCart, addItemsToCart, addToCart, isItemAvailable, updateCartEntry, validateCartData
-
-
-
-
Method Detail
-
addConfigurationToCart
public java.lang.String addConfigurationToCart(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 java.lang.String updateConfigurationInCart(java.lang.String key, 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
public CPQBolCartFacade getBolCartFacade()
- Overrides:
getBolCartFacadein classDefaultCartCheckoutBaseService- Returns:
- the bolCartFacade
-
getItemByKey
public Item getItemByKey(java.lang.String itemKey)
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?
-
-