Class DefaultUpdateQuoteFromCartStrategy
- java.lang.Object
-
- de.hybris.platform.order.strategies.impl.GenericAbstractOrderCloningStrategy<QuoteModel,QuoteEntryModel,CartModel>
-
- de.hybris.platform.commerceservices.order.impl.DefaultUpdateQuoteFromCartStrategy
-
- All Implemented Interfaces:
UpdateQuoteFromCartStrategy
public class DefaultUpdateQuoteFromCartStrategy extends GenericAbstractOrderCloningStrategy<QuoteModel,QuoteEntryModel,CartModel> implements UpdateQuoteFromCartStrategy
Default implementation ofUpdateQuoteFromCartStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultUpdateQuoteFromCartStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QuoteModel
getQuoteForCart(CartModel cart)
protected void
postProcess(CartModel original, QuoteModel copy)
QuoteModel
updateQuoteFromCart(CartModel cart)
Updates theQuoteModel
associated with the givenCartModel
with the contents of the cart.-
Methods inherited from class de.hybris.platform.order.strategies.impl.GenericAbstractOrderCloningStrategy
clone, generateCode, getAbstractOrderEntryResultClass, getAbstractOrderResultClass, getCloneAbstractOrderStrategy, getKeyGenerator, getOriginalAbstractOrderClass, setCloneAbstractOrderStrategy, setKeyGenerator
-
-
-
-
Method Detail
-
updateQuoteFromCart
public QuoteModel updateQuoteFromCart(CartModel cart)
Description copied from interface:UpdateQuoteFromCartStrategy
Updates theQuoteModel
associated with the givenCartModel
with the contents of the cart. Implementations have to handle cases where no quote is associated with the cart by e.g. throwing a runtime exception.- Specified by:
updateQuoteFromCart
in interfaceUpdateQuoteFromCartStrategy
- Parameters:
cart
- aCartModel
associated with aQuoteModel
.- Returns:
- the updated
QuoteModel
-
postProcess
protected void postProcess(CartModel original, QuoteModel copy)
- Overrides:
postProcess
in classGenericAbstractOrderCloningStrategy<QuoteModel,QuoteEntryModel,CartModel>
-
getQuoteForCart
protected QuoteModel getQuoteForCart(CartModel cart)
-
-