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 QuoteModelgetQuoteForCart(CartModel cart)protected voidpostProcess(CartModel original, QuoteModel copy)QuoteModelupdateQuoteFromCart(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
-
-
-
-
Method Detail
-
updateQuoteFromCart
public QuoteModel updateQuoteFromCart(CartModel cart)
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
protected void postProcess(CartModel original, QuoteModel copy)
- Overrides:
postProcessin classGenericAbstractOrderCloningStrategy<QuoteModel,QuoteEntryModel,CartModel>
-
getQuoteForCart
protected QuoteModel getQuoteForCart(CartModel cart)
-
-