public class DefaultRequoteStrategy extends GenericAbstractOrderCloningStrategy<QuoteModel,QuoteEntryModel,QuoteModel> implements RequoteStrategy
RequoteStrategy| Constructor and Description |
|---|
DefaultRequoteStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected CommerceQuoteUtils |
getCommerceQuoteUtils() |
protected QuoteUpdateStateStrategy |
getQuoteUpdateStateStrategy() |
protected void |
postProcess(QuoteModel original,
QuoteModel copy) |
QuoteModel |
requote(QuoteModel quote)
Re-quote an existing quote to get a new quote
|
void |
setCommerceQuoteUtils(CommerceQuoteUtils commerceQuoteUtils) |
void |
setQuoteUpdateStateStrategy(QuoteUpdateStateStrategy quoteUpdateStateStrategy) |
clone, generateCode, getAbstractOrderEntryResultClass, getAbstractOrderResultClass, getCloneAbstractOrderStrategy, getKeyGenerator, getOriginalAbstractOrderClass, setCloneAbstractOrderStrategy, setKeyGeneratorpublic QuoteModel requote(QuoteModel quote)
RequoteStrategyfields in the new created quoteModel are cleared including: name, description, expire time, cart comments, line item comments, cartReference, assignee and generatedNotifications
the new quote's version will be set to 1; and state is set to CREATE
requote in interface RequoteStrategyquote - quoteModel which will be re-quotedprotected void postProcess(QuoteModel original, QuoteModel copy)
postProcess in class GenericAbstractOrderCloningStrategy<QuoteModel,QuoteEntryModel,QuoteModel>protected CommerceQuoteUtils getCommerceQuoteUtils()
public void setCommerceQuoteUtils(CommerceQuoteUtils commerceQuoteUtils)
protected QuoteUpdateStateStrategy getQuoteUpdateStateStrategy()
public void setQuoteUpdateStateStrategy(QuoteUpdateStateStrategy quoteUpdateStateStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.