Class DefaultB2BCartFacade
- java.lang.Object
-
- de.hybris.platform.b2bacceleratorfacades.order.impl.DefaultB2BCartFacade
-
- All Implemented Interfaces:
CartFacade
- Direct Known Subclasses:
SapOrdermgmtB2BCartFacade
public class DefaultB2BCartFacade extends java.lang.Object implements CartFacade
Default implementation ofCartFacade
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BASKET_QUANTITY_REMOVE_SUCCESS
protected static org.apache.log4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description DefaultB2BCartFacade()
-
Method Summary
-
-
-
Field Detail
-
LOG
protected static final org.apache.log4j.Logger LOG
-
BASKET_QUANTITY_REMOVE_SUCCESS
public static final java.lang.String BASKET_QUANTITY_REMOVE_SUCCESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
addOrderEntry
public CartModificationData addOrderEntry(OrderEntryData cartEntry)
Description copied from interface:CartFacade
Method for adding a product to cart.- Specified by:
addOrderEntry
in interfaceCartFacade
- 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
-
isValidEntry
protected boolean isValidEntry(OrderEntryData cartEntry)
-
setAddStatusMessage
protected void setAddStatusMessage(OrderEntryData orderEntry, CartModificationData cartModification)
-
updateOrderEntry
public CartModificationData updateOrderEntry(OrderEntryData orderEntry)
Description copied from interface:CartFacade
Method for updating the number of products.- Specified by:
updateOrderEntry
in interfaceCartFacade
- Parameters:
orderEntry
- 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
-
deleteGroupedOrderEntries
protected CartModificationData deleteGroupedOrderEntries(OrderEntryData orderEntry)
-
setUpdateStatusMessage
protected void setUpdateStatusMessage(OrderEntryData orderEntry, CartModificationData cartModification)
-
addOrderEntryList
public java.util.List<CartModificationData> addOrderEntryList(java.util.List<OrderEntryData> cartEntries)
Description copied from interface:CartFacade
Method for adding a product to cart.- Specified by:
addOrderEntryList
in interfaceCartFacade
- 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:CartFacade
Method for updating a list of products in the cart.- Specified by:
updateOrderEntryList
in interfaceCartFacade
- 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
-
getOrderEntryNumber
protected java.lang.Integer getOrderEntryNumber(OrderEntryData findEntry)
-
getCurrentCart
public CartData getCurrentCart()
Description copied from interface:CartFacade
This gets the current cart.- Specified by:
getCurrentCart
in interfaceCartFacade
- Returns:
- the current cart.
-
update
public CartData update(CartData cartData)
Updates the cart data.- Specified by:
update
in interfaceCartFacade
- Parameters:
cartData
- an objectCartData
with cart data to update.- Returns:
- the updated cart.
-
setCartService
public void setCartService(B2BCartService cartService)
-
getCartService
protected B2BCartService getCartService()
-
getB2bProductFacade
protected ProductFacade getB2bProductFacade()
-
setB2bProductFacade
public void setB2bProductFacade(ProductFacade b2bProductFacade)
-
getCheckoutFacade
protected CheckoutFacade getCheckoutFacade()
-
setCheckoutFacade
public void setCheckoutFacade(CheckoutFacade checkoutFacade)
-
getGroupCartModificationListConverter
public Converter<AbstractOrderModel,java.util.List<CartModificationData>> getGroupCartModificationListConverter()
-
setGroupCartModificationListConverter
public void setGroupCartModificationListConverter(Converter<AbstractOrderModel,java.util.List<CartModificationData>> groupCartModificationListConverter)
-
getCartFacade
protected CartFacade getCartFacade()
-
setCartFacade
public void setCartFacade(CartFacade cartFacade)
-
-