Class CPQDefaultBolCartFacade
java.lang.Object
de.hybris.platform.sap.sapordermgmtservices.bolfacade.impl.DefaultBolCartFacade
de.hybris.platform.sap.sapproductconfigsomservices.bolfacade.impl.CPQDefaultBolCartFacade
- All Implemented Interfaces:
BolCartFacade,CPQBolCartFacade
Configurable product Facade for accessing the cart entity via the BOL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConfigurationToCart(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Adds a configuration to the cart, adding a new item with the config model attached.voidaddItemsToCart(List<Item> items) Adds a list of items to the cart, keeping their handlesprotected StringgetProductIdFromConfigModel(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Retrieves the SAP product ID from a configuration runtime representation.protected StringhandleUpdate(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, CPQItem item) protected StringperformVariantReplacement(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, CPQItem item) protected voidsetConfigModelForItem(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, CPQItem item) Set configuration to given item.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.bolfacade.impl.DefaultBolCartFacade
addEntriesToCart, addToCart, createAddress, createCart, createNewItem, createNewItem, formatProductIdForBOL, getAllowedDeliveryTypes, getCart, getCartBE, getCartErrors, getCartItem, getCartItem, getGenericFactory, getOrder, hasCart, isBackendDown, placeOrderFromCart, releaseCart, setGenericFactory, setSapPartnerService, updateCart, validateCartMethods 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.bolfacade.BolCartFacade
addEntriesToCart, addToCart, createAddress, createCart, getAllowedDeliveryTypes, getCart, getCartItem, hasCart, isBackendDown, placeOrderFromCart, releaseCart, updateCart, validateCart
-
Constructor Details
-
CPQDefaultBolCartFacade
public CPQDefaultBolCartFacade()
-
-
Method Details
-
addConfigurationToCart
public String addConfigurationToCart(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Description copied from interface:CPQBolCartFacadeAdds a configuration to the cart, adding a new item with the config model attached.- Specified by:
addConfigurationToCartin interfaceCPQBolCartFacade- Parameters:
configModel- configuration model- Returns:
- Key of new item
-
setConfigModelForItem
protected void setConfigModelForItem(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, CPQItem item) Set configuration to given item.- Parameters:
configModel-item-
-
getProductIdFromConfigModel
protected String getProductIdFromConfigModel(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Retrieves the SAP product ID from a configuration runtime representation. The product ID is taken from the root instance.- Parameters:
configModel-- Returns:
- SAP product ID (code of hybris product model)
-
updateConfigurationInCart
public String updateConfigurationInCart(String key, de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Description copied from interface:CPQBolCartFacadeUpdates the configuration attached to an item- Specified by:
updateConfigurationInCartin interfaceCPQBolCartFacade- Parameters:
key- Item keyconfigModel- Configuration- Returns:
- Key of updated item
-
handleUpdate
-
performVariantReplacement
-
addItemsToCart
Description copied from interface:BolCartFacadeAdds a list of items to the cart, keeping their handles- Specified by:
addItemsToCartin interfaceBolCartFacade- Overrides:
addItemsToCartin classDefaultBolCartFacade- Parameters:
items- BOL items
-