public class DefaultUpdateQuoteFromCartStrategy extends GenericAbstractOrderCloningStrategy<QuoteModel,QuoteEntryModel,CartModel> implements UpdateQuoteFromCartStrategy
UpdateQuoteFromCartStrategy| Constructor and Description |
|---|
DefaultUpdateQuoteFromCartStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected QuoteModel |
getQuoteForCart(CartModel cart) |
protected void |
postProcess(CartModel original,
QuoteModel copy) |
QuoteModel |
updateQuoteFromCart(CartModel cart)
Updates the
QuoteModel associated with the given CartModel with the contents of the cart. |
clone, generateCode, getAbstractOrderEntryResultClass, getAbstractOrderResultClass, getCloneAbstractOrderStrategy, getKeyGenerator, getOriginalAbstractOrderClass, setCloneAbstractOrderStrategy, setKeyGeneratorpublic QuoteModel updateQuoteFromCart(CartModel cart)
UpdateQuoteFromCartStrategyQuoteModel associated with the given CartModel 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.updateQuoteFromCart in interface UpdateQuoteFromCartStrategycart - a CartModel associated with a QuoteModel.QuoteModelprotected void postProcess(CartModel original, QuoteModel copy)
postProcess in class GenericAbstractOrderCloningStrategy<QuoteModel,QuoteEntryModel,CartModel>protected QuoteModel getQuoteForCart(CartModel cart)
Copyright © 2018 SAP SE. All Rights Reserved.