Class SapOrdermgmtB2BCartFacade
- java.lang.Object
-
- de.hybris.platform.b2bacceleratorfacades.order.impl.DefaultB2BCartFacade
-
- de.hybris.platform.sap.sapordermgmtb2bfacades.cart.impl.SapOrdermgmtB2BCartFacade
-
- All Implemented Interfaces:
CartFacade
public class SapOrdermgmtB2BCartFacade extends DefaultB2BCartFacade
Sap Implementation for B2BCartFacade. Delivers main functionality for cart.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.b2bacceleratorfacades.order.impl.DefaultB2BCartFacade
BASKET_QUANTITY_REMOVE_SUCCESS, LOG
-
-
Constructor Summary
Constructors Constructor Description SapOrdermgmtB2BCartFacade()
-
Method Summary
-
Methods inherited from class de.hybris.platform.b2bacceleratorfacades.order.impl.DefaultB2BCartFacade
deleteGroupedOrderEntries, getB2bProductFacade, getCartFacade, getCartService, getCheckoutFacade, getGroupCartModificationListConverter, getOrderEntryNumber, isValidEntry, setAddStatusMessage, setB2bProductFacade, setCartFacade, setCartService, setCheckoutFacade, setGroupCartModificationListConverter, setUpdateStatusMessage
-
-
-
-
Method Detail
-
isSyncOrdermgmtEnabled
protected boolean isSyncOrdermgmtEnabled()
-
addOrderEntry
public CartModificationData addOrderEntry(OrderEntryData cartEntry)
Description copied from interface:CartFacadeMethod for adding a product to cart.- Specified by:
addOrderEntryin interfaceCartFacade- Overrides:
addOrderEntryin classDefaultB2BCartFacade- Parameters:
cartEntry- the cart entry with the new product to add..- Returns:
- the cart modification data that includes a statusCode and the actual quantity added to the cart
-
updateOrderEntry
public CartModificationData updateOrderEntry(OrderEntryData cartEntry) throws EntityValidationException
Description copied from interface:CartFacadeMethod for updating the number of products.- Specified by:
updateOrderEntryin interfaceCartFacade- Overrides:
updateOrderEntryin classDefaultB2BCartFacade- Parameters:
cartEntry- the cart entry with the new value of quantity for product.- Returns:
- the cart modification data that includes a statusCode and the actual quantity that the entry was updated to
- Throws:
EntityValidationException- if the validation fails.
-
updateCart
protected CartModificationData updateCart(long entryNumber, long quantity)
-
addOrderEntryList
public java.util.List<CartModificationData> addOrderEntryList(java.util.List<OrderEntryData> cartEntries)
Description copied from interface:CartFacadeMethod for adding a product to cart.- Specified by:
addOrderEntryListin interfaceCartFacade- Overrides:
addOrderEntryListin classDefaultB2BCartFacade- Parameters:
cartEntries- the cart entries with the new products to add.- Returns:
- the cart modification data that includes a statusCode and the actual quantity added to the cart
-
updateOrderEntryList
public java.util.List<CartModificationData> updateOrderEntryList(java.util.List<OrderEntryData> cartEntries)
Description copied from interface:CartFacadeMethod for updating a list of products in the cart.- Specified by:
updateOrderEntryListin interfaceCartFacade- Overrides:
updateOrderEntryListin classDefaultB2BCartFacade- Parameters:
cartEntries- the cart entries with the new products to add.- Returns:
- the cart modification data that includes a statusCode and the actual quantity added to the cart
-
getCartRestorationFacade
public CartRestorationFacade getCartRestorationFacade()
- Returns:
- the cartRestorationFacade
-
setCartRestorationFacade
public void setCartRestorationFacade(CartRestorationFacade cartRestorationFacade)
- Parameters:
cartRestorationFacade- the cartRestorationFacade to set
-
isBackendDown
public boolean isBackendDown()
- Returns:
- Is Backend down?
-
getBackendAvailabilityService
protected BackendAvailabilityService getBackendAvailabilityService()
- Returns:
- the backendAvailabilityService
-
setBackendAvailabilityService
public void setBackendAvailabilityService(BackendAvailabilityService backendAvailabilityService)
- Parameters:
backendAvailabilityService- the backendAvailabilityService to set
-
update
public CartData update(CartData cartData)
Updates the information in the cart based on the content of the cartData- Specified by:
updatein interfaceCartFacade- Overrides:
updatein classDefaultB2BCartFacade- Parameters:
cartData- the cart to modify and it's modifications.- Returns:
- the updated cart.
-
getCurrentCart
public CartData getCurrentCart()
This gets the current cart.- Specified by:
getCurrentCartin interfaceCartFacade- Overrides:
getCurrentCartin classDefaultB2BCartFacade- Returns:
- the current cart.
-
getSapCartService
public CartService getSapCartService()
- Returns:
- the sapCartService
-
setSapCartService
public void setSapCartService(CartService sapCartService)
- Parameters:
sapCartService- the sapCartService to set
-
getBaseStoreService
public BaseStoreService getBaseStoreService()
- Returns:
- the baseStoreService
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
- Parameters:
baseStoreService- the baseStoreService to set
-
getSapCartFacade
public CartFacade getSapCartFacade()
- Returns:
- the sapCartFacade
-
setSapCartFacade
public void setSapCartFacade(CartFacade sapCartFacade)
- Parameters:
sapCartFacade- the sapCartFacade to set
-
getSapCartFacadeHooks
public java.util.List<SapCartFacadeHook> getSapCartFacadeHooks()
- Returns:
- the sapCartFacadeHooks
-
setSapCartFacadeHooks
public void setSapCartFacadeHooks(java.util.List<SapCartFacadeHook> sapCartFacadeHooks)
- Parameters:
sapCartFacadeHooks- the sapCartFacadeHooks to set
-
-