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 of
UpdateQuoteFromCartStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QuoteModelgetQuoteForCart(CartModel cart) protected voidpostProcess(CartModel original, QuoteModel copy) updateQuoteFromCart(CartModel cart) Updates theQuoteModelassociated with the givenCartModelwith 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
-
Constructor Details
-
DefaultUpdateQuoteFromCartStrategy
public DefaultUpdateQuoteFromCartStrategy()
-
-
Method Details
-
updateQuoteFromCart
Description copied from interface:UpdateQuoteFromCartStrategyUpdates theQuoteModelassociated with the givenCartModelwith 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:
updateQuoteFromCartin interfaceUpdateQuoteFromCartStrategy- Parameters:
cart- aCartModelassociated with aQuoteModel.- Returns:
- the updated
QuoteModel
-
postProcess
- Overrides:
postProcessin classGenericAbstractOrderCloningStrategy<QuoteModel,QuoteEntryModel, CartModel>
-
getQuoteForCart
-