Class DefaultCommerceQuoteService
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.DefaultCommerceQuoteService
-
- All Implemented Interfaces:
CommerceQuoteService
- Direct Known Subclasses:
DefaultC4CQuoteService,DefaultSapCpiQuoteService
public class DefaultCommerceQuoteService extends java.lang.Object implements CommerceQuoteService
Default implementation forCommerceQuoteService.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringABSTRACT_ORDER_DESCRIPTIONprotected static java.lang.StringABSTRACT_ORDER_NAMEprotected static java.lang.StringDATE_TIME_FORMAT
-
Constructor Summary
Constructors Constructor Description DefaultCommerceQuoteService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CartModelacceptAndPrepareCheckout(QuoteModel quoteModel, UserModel userModel)Accept and prepare checkout.voidapplyQuoteDiscount(AbstractOrderModel abstractOrderModel, UserModel userModel, java.lang.Double discountRate, DiscountType discountType)Applies a quote specific discount to abstract order model given the discount rate and discount type.QuoteModelapproveQuote(QuoteModel quoteModel, UserModel userModel)Approve a quote from seller representative.voidassignQuoteToUser(QuoteModel quote, UserModel assignee, UserModel assigner)Assigns quote to an assigneevoidcancelQuote(QuoteModel quoteModel, UserModel userModel)Cancels a quote.protected java.util.Optional<DiscountValue>createDiscountValue(java.lang.Double discountRate, DiscountType discountType, java.lang.String currencyIsoCode)QuoteModelcreateQuoteFromCart(CartModel cartModel, UserModel userModel)Creates a new quote based on given cart.protected QuoteModelcreateQuoteFromCartInternal(CartModel cartModel, UserModel userModel)protected QuoteModelcreateQuoteSnapshot(QuoteModel quoteModel)QuoteModelcreateQuoteSnapshotWithState(QuoteModel quoteModel, QuoteState quoteState)Create a new quote snapshot for a given quote state and persist the model.protected voidexecuteQuoteAssignment(QuoteModel quote, UserModel assignee, java.lang.String errorMsg)java.util.Set<QuoteAction>getAllowedActions(QuoteModel quoteModel, UserModel userModel)Get currently allowed actions for a quote.protected CalculationServicegetCalculationService()protected CartServicegetCartService()protected CommerceCartServicegetCommerceCartService()protected CommerceQuoteDaogetCommerceQuoteDao()protected CommerceQuoteUtilsgetCommerceQuoteUtils()protected CommerceSaveCartServicegetCommerceSaveCartService()protected java.lang.StringgetCurrentDateTimeFormatted(java.lang.String format)protected EventServicegetEventService()protected ModelServicegetModelService()protected OrderQuoteDiscountValuesAccessorgetOrderQuoteDiscountValuesAccessor()protected QuoteActionValidationStrategygetQuoteActionValidationStrategy()protected QuoteAssignmentValidationStrategygetQuoteAssignmentValidationStrategy()QuoteModelgetQuoteByCodeAndCustomerAndStore(CustomerModel customerModel, UserModel quoteUserModel, BaseStoreModel store, java.lang.String quoteCode)Finds a quote with highest version by code, customer and store.protected QuoteCartValidationStrategygetQuoteCartValidationStrategy()protected QuoteExpirationTimeValidationStrategygetQuoteExpirationTimeValidationStrategy()protected java.util.Optional<QuoteModel>getQuoteFromSessionCart()SearchPageData<QuoteModel>getQuoteList(CustomerModel customerModel, UserModel quoteUserModel, BaseStoreModel store, PageableData pageableData)Retrieves the paged list of quotes according to the provided selection criteria.protected QuoteMetadataValidationStrategygetQuoteMetadataValidationStrategy()doublegetQuoteRequestThreshold(QuoteModel quote, UserModel user, CartModel sessionCart)Get quote request threshold defined in properties.java.lang.IntegergetQuotesCountForStoreAndUser(CustomerModel customerModel, UserModel quoteUserModel, BaseStoreModel store)Get the number of quotes for the specified user and store.protected QuoteSellerApproverAutoApprovalStrategygetQuoteSellerApproverAutoApprovalStrategy()protected QuoteServicegetQuoteService()protected java.util.Map<QuoteState,QuoteState>getQuoteSnapshotStateTransitionMap()protected QuoteStateSelectionStrategygetQuoteStateSelectionStrategy()protected QuoteUpdateExpirationTimeStrategygetQuoteUpdateExpirationTimeStrategy()protected QuoteUpdateStateStrategygetQuoteUpdateStateStrategy()protected QuoteUserTypeIdentificationStrategygetQuoteUserTypeIdentificationStrategy()protected RequoteStrategygetRequoteStrategy()protected SessionServicegetSessionService()protected UpdateQuoteFromCartStrategygetUpdateQuoteFromCartStrategy()protected UserServicegetUserService()protected booleanhasQuoteInSessionCart()booleanisQuoteCartValidForCheckout(CartModel cart)Validates if the quote cart can be checked-out or notprotected booleanisRequestThresholdRequired(QuoteModel quote, UserModel user, CartModel sessionCart)Checks if quote is in a state that requires checking the request threshold.protected booleanisSessionQuoteSameAsRequestedQuote(QuoteModel quoteModel)CartModelloadQuoteAsSessionCart(QuoteModel quoteModel, UserModel userModel)Loads the given quote into a new session cart or returns the existing session cart if existing session cart already has the quote loaded.QuoteModelrejectQuote(QuoteModel quoteModel, UserModel userModel)Reject a quote from seller representative.voidremoveQuoteCart(QuoteModel quote)Removes the cart related to the given quoteQuoteModelrequote(QuoteModel quote, UserModel user)Re-quote from an existing quote to create a new quoteprotected QuoteModelsaveUpdate(CartModel cart, QuoteModel outdatedQuote, QuoteModel updatedQuote)protected voidsetAssigneeOnQuote(QuoteModel quote, UserModel assignee)voidsetCalculationService(CalculationService calculationService)voidsetCartService(CartService cartService)voidsetCommerceCartService(CommerceCartService commerceCartService)voidsetCommerceQuoteDao(CommerceQuoteDao commerceQuoteDao)voidsetCommerceQuoteUtils(CommerceQuoteUtils commerceQuoteUtils)voidsetCommerceSaveCartService(CommerceSaveCartService commerceSaveCartService)voidsetEventService(EventService eventService)voidsetModelService(ModelService modelService)voidsetOrderQuoteDiscountValuesAccessor(OrderQuoteDiscountValuesAccessor orderQuoteDiscountValuesAccessor)voidsetQuoteActionValidationStrategy(QuoteActionValidationStrategy quoteActionValidationStrategy)voidsetQuoteAssignmentValidationStrategy(QuoteAssignmentValidationStrategy quoteAssignmentValidationStrategy)voidsetQuoteCartValidationStrategy(QuoteCartValidationStrategy quoteCartValidationStrategy)voidsetQuoteExpirationTimeValidationStrategy(QuoteExpirationTimeValidationStrategy quoteExpirationTimeValidationStrategy)voidsetQuoteMetadataValidationStrategy(QuoteMetadataValidationStrategy quoteMetadataValidationStrategy)voidsetQuoteSellerApproverAutoApprovalStrategy(QuoteSellerApproverAutoApprovalStrategy quoteSellerApproverAutoApprovalStrategy)voidsetQuoteService(QuoteService quoteService)voidsetQuoteSnapshotStateTransitionMap(java.util.Map<QuoteState,QuoteState> quoteSnapshotStateTransitionMap)voidsetQuoteStateSelectionStrategy(QuoteStateSelectionStrategy quoteStateSelectionStrategy)voidsetQuoteUpdateExpirationTimeStrategy(QuoteUpdateExpirationTimeStrategy quoteUpdateExpirationTimeStrategy)voidsetQuoteUpdateStateStrategy(QuoteUpdateStateStrategy quoteUpdateStateStrategy)voidsetQuoteUserTypeIdentificationStrategy(QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy)voidsetRequoteStrategy(RequoteStrategy requoteStrategy)voidsetSessionService(SessionService sessionService)voidsetUpdateQuoteFromCartStrategy(UpdateQuoteFromCartStrategy updateQuoteFromCartStrategy)voidsetUserService(UserService userService)booleanshouldAutoApproveTheQuoteForSellerApproval(QuoteModel quoteModel)Checks whether a quote can be auto approved or requires seller approval based on the configured threshold.QuoteModelsubmitQuote(QuoteModel quoteModel, UserModel userModel)Submits a quote from buyer to seller representative or from seller representative to seller approver.voidunassignQuote(QuoteModel quote, UserModel assigner)Unassigns the assignee from the quoteprotected CartModelupdateAndLoadQuoteCartWithAction(QuoteModel quoteModel, QuoteAction quoteAction, UserModel userModel)QuoteModelupdateQuoteFromCart(CartModel cartModel, UserModel userModel)Updates quote with data from cart (and existing quote).protected QuoteModelupdateQuoteFromCartInternal(CartModel cartModel)protected voidvalidateDiscountRate(java.lang.Double discountRate, DiscountType discountType, AbstractOrderModel abstractOrderModel)protected voidvalidateListNotEmpty(java.util.Collection paramToCheck, java.lang.String unknownIdException)protected voidvalidateQuoteCart(CartModel cartModel)voidvalidateQuoteThreshold(QuoteModel quote, UserModel user, CartModel sessionCart)Validates if quote meets threshold.protected voidvalidateQuoteTotal(QuoteModel quoteModel)
-
-
-
Field Detail
-
DATE_TIME_FORMAT
protected static final java.lang.String DATE_TIME_FORMAT
- See Also:
- Constant Field Values
-
ABSTRACT_ORDER_NAME
protected static final java.lang.String ABSTRACT_ORDER_NAME
- See Also:
- Constant Field Values
-
ABSTRACT_ORDER_DESCRIPTION
protected static final java.lang.String ABSTRACT_ORDER_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
createQuoteFromCart
public QuoteModel createQuoteFromCart(CartModel cartModel, UserModel userModel)
Description copied from interface:CommerceQuoteServiceCreates a new quote based on given cart. Please note that it's the caller's responsibility to persist the new quote. The cart passed into this method is not affected by its business logic.- Specified by:
createQuoteFromCartin interfaceCommerceQuoteService- Parameters:
cartModel- the cart modeluserModel- the user performing the operation on the quote- Returns:
- the new quote model
-
createQuoteFromCartInternal
protected QuoteModel createQuoteFromCartInternal(CartModel cartModel, UserModel userModel)
-
hasQuoteInSessionCart
protected boolean hasQuoteInSessionCart()
-
loadQuoteAsSessionCart
public CartModel loadQuoteAsSessionCart(QuoteModel quoteModel, UserModel userModel)
Description copied from interface:CommerceQuoteServiceLoads the given quote into a new session cart or returns the existing session cart if existing session cart already has the quote loaded. If the quote needs to be loaded into a new session cart, it first checks if the action can be performed for the quote. If the action cannot be performed, then a runtime exception is thrown. The method also updates the quote state and saves the existing session cart before replacing it with a new session cart, if needed.- Specified by:
loadQuoteAsSessionCartin interfaceCommerceQuoteService- Parameters:
quoteModel- the quote to processuserModel- the user performing the operation on the quote- Returns:
- the new session cart loaded with the given quote or the existing session cart if existing session cart already has the quote loaded
-
removeQuoteCart
public void removeQuoteCart(QuoteModel quote)
Description copied from interface:CommerceQuoteServiceRemoves the cart related to the given quote- Specified by:
removeQuoteCartin interfaceCommerceQuoteService- Parameters:
quote- the quote to detach cart from
-
updateAndLoadQuoteCartWithAction
protected CartModel updateAndLoadQuoteCartWithAction(QuoteModel quoteModel, QuoteAction quoteAction, UserModel userModel)
-
getCurrentDateTimeFormatted
protected java.lang.String getCurrentDateTimeFormatted(java.lang.String format)
-
getQuoteFromSessionCart
protected java.util.Optional<QuoteModel> getQuoteFromSessionCart()
-
submitQuote
public QuoteModel submitQuote(QuoteModel quoteModel, UserModel userModel)
Description copied from interface:CommerceQuoteServiceSubmits a quote from buyer to seller representative or from seller representative to seller approver. A new version of the same quote will be created on the seller representative or seller approver side.- Specified by:
submitQuotein interfaceCommerceQuoteService- Parameters:
quoteModel- the quote to processuserModel- the user performing the operation on the quote- Returns:
- the updated quote
-
validateQuoteThreshold
public void validateQuoteThreshold(QuoteModel quote, UserModel user, CartModel sessionCart) throws QuoteUnderThresholdException
Description copied from interface:CommerceQuoteServiceValidates if quote meets threshold.- Specified by:
validateQuoteThresholdin interfaceCommerceQuoteService- Parameters:
quote- the quote to validateuser- the user performing the operation on the quotesessionCart- the cart in session- Throws:
QuoteUnderThresholdException- if quote does not meet threshold
-
isRequestThresholdRequired
protected boolean isRequestThresholdRequired(QuoteModel quote, UserModel user, CartModel sessionCart)
Checks if quote is in a state that requires checking the request threshold.- Parameters:
quote-user-sessionCart-- Returns:
- true is request threshold is required.
-
getQuoteRequestThreshold
public double getQuoteRequestThreshold(QuoteModel quote, UserModel user, CartModel sessionCart)
Description copied from interface:CommerceQuoteServiceGet quote request threshold defined in properties. It will return the property defined threshold amount for current site and currency. If the threshold is not defined for the site and currency, it will return global threshold. If none of these are defined, it will return 0. If quote threshold calculation is not required for the quote, will return an negative number.- Specified by:
getQuoteRequestThresholdin interfaceCommerceQuoteService- Returns:
- quote request threshold
-
validateQuoteTotal
protected void validateQuoteTotal(QuoteModel quoteModel)
-
approveQuote
public QuoteModel approveQuote(QuoteModel quoteModel, UserModel userModel)
Description copied from interface:CommerceQuoteServiceApprove a quote from seller representative. Send a quote on submit event.- Specified by:
approveQuotein interfaceCommerceQuoteService- Parameters:
quoteModel- the quote to processuserModel- the user performing the operation on the quote- Returns:
- the updated quote
-
rejectQuote
public QuoteModel rejectQuote(QuoteModel quoteModel, UserModel userModel)
Description copied from interface:CommerceQuoteServiceReject a quote from seller representative. Send a quote on submit event.- Specified by:
rejectQuotein interfaceCommerceQuoteService- Parameters:
quoteModel- the quote to processuserModel- the user performing the operation on the quote- Returns:
- the updated quote
-
createQuoteSnapshot
protected QuoteModel createQuoteSnapshot(QuoteModel quoteModel)
-
updateQuoteFromCart
public QuoteModel updateQuoteFromCart(CartModel cartModel, UserModel userModel)
Description copied from interface:CommerceQuoteServiceUpdates quote with data from cart (and existing quote). Sets the cart as cartReference on to the new quote.- Specified by:
updateQuoteFromCartin interfaceCommerceQuoteService- Parameters:
cartModel- cart that has an association to a quoteuserModel- the user performing the operation on the quote- Returns:
- the updated quote
-
requote
public QuoteModel requote(QuoteModel quote, UserModel user)
Description copied from interface:CommerceQuoteServiceRe-quote from an existing quote to create a new quote- Specified by:
requotein interfaceCommerceQuoteService- Parameters:
quote- the existing quoteModeluser- the current quote user- Returns:
- the new created quoteModel
-
getQuoteList
public SearchPageData<QuoteModel> getQuoteList(CustomerModel customerModel, UserModel quoteUserModel, BaseStoreModel store, PageableData pageableData)
Description copied from interface:CommerceQuoteServiceRetrieves the paged list of quotes according to the provided selection criteria.- Specified by:
getQuoteListin interfaceCommerceQuoteService- Parameters:
customerModel- the customer to be used for selecting the quotesquoteUserModel- the user asking for the list.store- the store to be used for selecting the quotespageableData- paging information- Returns:
- the paged search results
-
getQuoteByCodeAndCustomerAndStore
public QuoteModel getQuoteByCodeAndCustomerAndStore(CustomerModel customerModel, UserModel quoteUserModel, BaseStoreModel store, java.lang.String quoteCode)
Description copied from interface:CommerceQuoteServiceFinds a quote with highest version by code, customer and store.- Specified by:
getQuoteByCodeAndCustomerAndStorein interfaceCommerceQuoteService- Parameters:
customerModel- the customer to be used for selecting the quotequoteUserModel- the user asking for the list.store- the store to be used for selecting the quotequoteCode- the code of the quote- Returns:
- the quote
-
validateListNotEmpty
protected void validateListNotEmpty(java.util.Collection paramToCheck, java.lang.String unknownIdException)
-
getAllowedActions
public java.util.Set<QuoteAction> getAllowedActions(QuoteModel quoteModel, UserModel userModel)
Description copied from interface:CommerceQuoteServiceGet currently allowed actions for a quote.- Specified by:
getAllowedActionsin interfaceCommerceQuoteService- Parameters:
quoteModel- the quote to processuserModel- the user for which the allowed actions will be determined- Returns:
- the allowed action. Empty set will be returned if none of the actions is allowed.
-
acceptAndPrepareCheckout
public CartModel acceptAndPrepareCheckout(QuoteModel quoteModel, UserModel userModel)
Description copied from interface:CommerceQuoteServiceAccept and prepare checkout. Similar toCommerceQuoteService.loadQuoteAsSessionCart(QuoteModel, UserModel)but for checkout.- Specified by:
acceptAndPrepareCheckoutin interfaceCommerceQuoteService- Parameters:
quoteModel- the quote to processuserModel- the user performing the operation on the quote- Returns:
- the cart for checkout
-
applyQuoteDiscount
public void applyQuoteDiscount(AbstractOrderModel abstractOrderModel, UserModel userModel, java.lang.Double discountRate, DiscountType discountType)
Description copied from interface:CommerceQuoteServiceApplies a quote specific discount to abstract order model given the discount rate and discount type.- Specified by:
applyQuoteDiscountin interfaceCommerceQuoteService- Parameters:
abstractOrderModel- the abstract order model to add a discount to. Must either be aQuoteModelor aCartModelassociated with a quote.userModel- the user performing the operation on the quotediscountRate- the discount rate to be applieddiscountType- the type of discount to be applied
-
validateDiscountRate
protected void validateDiscountRate(java.lang.Double discountRate, DiscountType discountType, AbstractOrderModel abstractOrderModel)
-
cancelQuote
public void cancelQuote(QuoteModel quoteModel, UserModel userModel)
Description copied from interface:CommerceQuoteServiceCancels a quote. The version of the quote visible to the user will have the state set to canceled.- Specified by:
cancelQuotein interfaceCommerceQuoteService- Parameters:
quoteModel- the quote to canceluserModel- the user performing the operation on the quote
-
assignQuoteToUser
public void assignQuoteToUser(QuoteModel quote, UserModel assignee, UserModel assigner)
Description copied from interface:CommerceQuoteServiceAssigns quote to an assignee- Specified by:
assignQuoteToUserin interfaceCommerceQuoteService- Parameters:
quote- the quote to be assignedassignee- the user to which the quote should be assignedassigner- the user assigning the quote to the assignee
-
unassignQuote
public void unassignQuote(QuoteModel quote, UserModel assigner)
Description copied from interface:CommerceQuoteServiceUnassigns the assignee from the quote- Specified by:
unassignQuotein interfaceCommerceQuoteService- Parameters:
quote- the quote to be unassignedassigner- the user un-assigning the quote from the assignee
-
shouldAutoApproveTheQuoteForSellerApproval
public boolean shouldAutoApproveTheQuoteForSellerApproval(QuoteModel quoteModel)
Description copied from interface:CommerceQuoteServiceChecks whether a quote can be auto approved or requires seller approval based on the configured threshold.- Specified by:
shouldAutoApproveTheQuoteForSellerApprovalin interfaceCommerceQuoteService- Parameters:
quoteModel- the quote to inspect for auto approval- Returns:
- true if the quote should be auto approved, false otherwise
-
getQuotesCountForStoreAndUser
public java.lang.Integer getQuotesCountForStoreAndUser(CustomerModel customerModel, UserModel quoteUserModel, BaseStoreModel store)
Description copied from interface:CommerceQuoteServiceGet the number of quotes for the specified user and store.- Specified by:
getQuotesCountForStoreAndUserin interfaceCommerceQuoteService- Parameters:
customerModel- the customer to be used for selecting the quotesquoteUserModel- the user asking for the number of quotesstore- the store to be used for selecting the quotes- Returns:
- the total number
-
isQuoteCartValidForCheckout
public boolean isQuoteCartValidForCheckout(CartModel cart)
Description copied from interface:CommerceQuoteServiceValidates if the quote cart can be checked-out or not- Specified by:
isQuoteCartValidForCheckoutin interfaceCommerceQuoteService- Parameters:
cart- the cart to validate- Returns:
- true if quoteCart is valid for check out, false otherwise
-
createQuoteSnapshotWithState
public QuoteModel createQuoteSnapshotWithState(QuoteModel quoteModel, QuoteState quoteState)
Description copied from interface:CommerceQuoteServiceCreate a new quote snapshot for a given quote state and persist the model.- Specified by:
createQuoteSnapshotWithStatein interfaceCommerceQuoteService- Parameters:
quoteModel- the quoteModel to create a snapshot fromquoteState- the new quoteState- Returns:
- the newly created quote
-
updateQuoteFromCartInternal
protected QuoteModel updateQuoteFromCartInternal(CartModel cartModel)
-
executeQuoteAssignment
protected void executeQuoteAssignment(QuoteModel quote, UserModel assignee, java.lang.String errorMsg)
-
setAssigneeOnQuote
protected void setAssigneeOnQuote(QuoteModel quote, UserModel assignee)
-
saveUpdate
protected QuoteModel saveUpdate(CartModel cart, QuoteModel outdatedQuote, QuoteModel updatedQuote)
-
createDiscountValue
protected java.util.Optional<DiscountValue> createDiscountValue(java.lang.Double discountRate, DiscountType discountType, java.lang.String currencyIsoCode)
-
isSessionQuoteSameAsRequestedQuote
protected boolean isSessionQuoteSameAsRequestedQuote(QuoteModel quoteModel)
-
validateQuoteCart
protected void validateQuoteCart(CartModel cartModel)
-
getCommerceQuoteDao
protected CommerceQuoteDao getCommerceQuoteDao()
-
setCommerceQuoteDao
public void setCommerceQuoteDao(CommerceQuoteDao commerceQuoteDao)
-
getCartService
protected CartService getCartService()
-
setCartService
public void setCartService(CartService cartService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getCommerceSaveCartService
protected CommerceSaveCartService getCommerceSaveCartService()
-
setCommerceSaveCartService
public void setCommerceSaveCartService(CommerceSaveCartService commerceSaveCartService)
-
getSessionService
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getCommerceCartService
protected CommerceCartService getCommerceCartService()
-
setCommerceCartService
public void setCommerceCartService(CommerceCartService commerceCartService)
-
getQuoteStateSelectionStrategy
protected QuoteStateSelectionStrategy getQuoteStateSelectionStrategy()
-
setQuoteStateSelectionStrategy
public void setQuoteStateSelectionStrategy(QuoteStateSelectionStrategy quoteStateSelectionStrategy)
-
getQuoteActionValidationStrategy
protected QuoteActionValidationStrategy getQuoteActionValidationStrategy()
-
setQuoteActionValidationStrategy
public void setQuoteActionValidationStrategy(QuoteActionValidationStrategy quoteActionValidationStrategy)
-
getQuoteUpdateStateStrategy
protected QuoteUpdateStateStrategy getQuoteUpdateStateStrategy()
-
setQuoteUpdateStateStrategy
public void setQuoteUpdateStateStrategy(QuoteUpdateStateStrategy quoteUpdateStateStrategy)
-
getCalculationService
protected CalculationService getCalculationService()
-
setCalculationService
public void setCalculationService(CalculationService calculationService)
-
getQuoteService
protected QuoteService getQuoteService()
-
setQuoteService
public void setQuoteService(QuoteService quoteService)
-
getUpdateQuoteFromCartStrategy
protected UpdateQuoteFromCartStrategy getUpdateQuoteFromCartStrategy()
-
setUpdateQuoteFromCartStrategy
public void setUpdateQuoteFromCartStrategy(UpdateQuoteFromCartStrategy updateQuoteFromCartStrategy)
-
getQuoteAssignmentValidationStrategy
protected QuoteAssignmentValidationStrategy getQuoteAssignmentValidationStrategy()
-
setQuoteAssignmentValidationStrategy
public void setQuoteAssignmentValidationStrategy(QuoteAssignmentValidationStrategy quoteAssignmentValidationStrategy)
-
getQuoteSnapshotStateTransitionMap
protected java.util.Map<QuoteState,QuoteState> getQuoteSnapshotStateTransitionMap()
-
setQuoteSnapshotStateTransitionMap
public void setQuoteSnapshotStateTransitionMap(java.util.Map<QuoteState,QuoteState> quoteSnapshotStateTransitionMap)
-
getQuoteUserTypeIdentificationStrategy
protected QuoteUserTypeIdentificationStrategy getQuoteUserTypeIdentificationStrategy()
-
setQuoteUserTypeIdentificationStrategy
public void setQuoteUserTypeIdentificationStrategy(QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy)
-
getEventService
protected EventService getEventService()
-
setEventService
public void setEventService(EventService eventService)
-
getQuoteSellerApproverAutoApprovalStrategy
protected QuoteSellerApproverAutoApprovalStrategy getQuoteSellerApproverAutoApprovalStrategy()
-
setQuoteSellerApproverAutoApprovalStrategy
public void setQuoteSellerApproverAutoApprovalStrategy(QuoteSellerApproverAutoApprovalStrategy quoteSellerApproverAutoApprovalStrategy)
-
getQuoteCartValidationStrategy
protected QuoteCartValidationStrategy getQuoteCartValidationStrategy()
-
setQuoteCartValidationStrategy
public void setQuoteCartValidationStrategy(QuoteCartValidationStrategy quoteCartValidationStrategy)
-
getOrderQuoteDiscountValuesAccessor
protected OrderQuoteDiscountValuesAccessor getOrderQuoteDiscountValuesAccessor()
-
setOrderQuoteDiscountValuesAccessor
public void setOrderQuoteDiscountValuesAccessor(OrderQuoteDiscountValuesAccessor orderQuoteDiscountValuesAccessor)
-
getQuoteUpdateExpirationTimeStrategy
protected QuoteUpdateExpirationTimeStrategy getQuoteUpdateExpirationTimeStrategy()
-
setQuoteUpdateExpirationTimeStrategy
public void setQuoteUpdateExpirationTimeStrategy(QuoteUpdateExpirationTimeStrategy quoteUpdateExpirationTimeStrategy)
-
getQuoteMetadataValidationStrategy
protected QuoteMetadataValidationStrategy getQuoteMetadataValidationStrategy()
-
setQuoteMetadataValidationStrategy
public void setQuoteMetadataValidationStrategy(QuoteMetadataValidationStrategy quoteMetadataValidationStrategy)
-
getQuoteExpirationTimeValidationStrategy
protected QuoteExpirationTimeValidationStrategy getQuoteExpirationTimeValidationStrategy()
-
setQuoteExpirationTimeValidationStrategy
public void setQuoteExpirationTimeValidationStrategy(QuoteExpirationTimeValidationStrategy quoteExpirationTimeValidationStrategy)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCommerceQuoteUtils
protected CommerceQuoteUtils getCommerceQuoteUtils()
-
setCommerceQuoteUtils
public void setCommerceQuoteUtils(CommerceQuoteUtils commerceQuoteUtils)
-
getRequoteStrategy
protected RequoteStrategy getRequoteStrategy()
-
setRequoteStrategy
public void setRequoteStrategy(RequoteStrategy requoteStrategy)
-
-