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.String
ABSTRACT_ORDER_DESCRIPTION
protected static java.lang.String
ABSTRACT_ORDER_NAME
protected static java.lang.String
DATE_TIME_FORMAT
-
Constructor Summary
Constructors Constructor Description DefaultCommerceQuoteService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CartModel
acceptAndPrepareCheckout(QuoteModel quoteModel, UserModel userModel)
Accept and prepare checkout.void
applyQuoteDiscount(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.QuoteModel
approveQuote(QuoteModel quoteModel, UserModel userModel)
Approve a quote from seller representative.void
assignQuoteToUser(QuoteModel quote, UserModel assignee, UserModel assigner)
Assigns quote to an assigneevoid
cancelQuote(QuoteModel quoteModel, UserModel userModel)
Cancels a quote.protected java.util.Optional<DiscountValue>
createDiscountValue(java.lang.Double discountRate, DiscountType discountType, java.lang.String currencyIsoCode)
QuoteModel
createQuoteFromCart(CartModel cartModel, UserModel userModel)
Creates a new quote based on given cart.protected QuoteModel
createQuoteFromCartInternal(CartModel cartModel, UserModel userModel)
protected QuoteModel
createQuoteSnapshot(QuoteModel quoteModel)
QuoteModel
createQuoteSnapshotWithState(QuoteModel quoteModel, QuoteState quoteState)
Create a new quote snapshot for a given quote state and persist the model.protected void
executeQuoteAssignment(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 CalculationService
getCalculationService()
protected CartService
getCartService()
protected CommerceCartService
getCommerceCartService()
protected CommerceQuoteDao
getCommerceQuoteDao()
protected CommerceQuoteUtils
getCommerceQuoteUtils()
protected CommerceSaveCartService
getCommerceSaveCartService()
protected java.lang.String
getCurrentDateTimeFormatted(java.lang.String format)
protected EventService
getEventService()
protected ModelService
getModelService()
protected OrderQuoteDiscountValuesAccessor
getOrderQuoteDiscountValuesAccessor()
protected QuoteActionValidationStrategy
getQuoteActionValidationStrategy()
protected QuoteAssignmentValidationStrategy
getQuoteAssignmentValidationStrategy()
QuoteModel
getQuoteByCodeAndCustomerAndStore(CustomerModel customerModel, UserModel quoteUserModel, BaseStoreModel store, java.lang.String quoteCode)
Finds a quote with highest version by code, customer and store.protected QuoteCartValidationStrategy
getQuoteCartValidationStrategy()
protected QuoteExpirationTimeValidationStrategy
getQuoteExpirationTimeValidationStrategy()
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 QuoteMetadataValidationStrategy
getQuoteMetadataValidationStrategy()
double
getQuoteRequestThreshold(QuoteModel quote, UserModel user, CartModel sessionCart)
Get quote request threshold defined in properties.java.lang.Integer
getQuotesCountForStoreAndUser(CustomerModel customerModel, UserModel quoteUserModel, BaseStoreModel store)
Get the number of quotes for the specified user and store.protected QuoteSellerApproverAutoApprovalStrategy
getQuoteSellerApproverAutoApprovalStrategy()
protected QuoteService
getQuoteService()
protected java.util.Map<QuoteState,QuoteState>
getQuoteSnapshotStateTransitionMap()
protected QuoteStateSelectionStrategy
getQuoteStateSelectionStrategy()
protected QuoteUpdateExpirationTimeStrategy
getQuoteUpdateExpirationTimeStrategy()
protected QuoteUpdateStateStrategy
getQuoteUpdateStateStrategy()
protected QuoteUserTypeIdentificationStrategy
getQuoteUserTypeIdentificationStrategy()
protected RequoteStrategy
getRequoteStrategy()
protected SessionService
getSessionService()
protected UpdateQuoteFromCartStrategy
getUpdateQuoteFromCartStrategy()
protected UserService
getUserService()
protected boolean
hasQuoteInSessionCart()
boolean
isQuoteCartValidForCheckout(CartModel cart)
Validates if the quote cart can be checked-out or notprotected boolean
isRequestThresholdRequired(QuoteModel quote, UserModel user, CartModel sessionCart)
Checks if quote is in a state that requires checking the request threshold.protected boolean
isSessionQuoteSameAsRequestedQuote(QuoteModel quoteModel)
CartModel
loadQuoteAsSessionCart(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.QuoteModel
rejectQuote(QuoteModel quoteModel, UserModel userModel)
Reject a quote from seller representative.void
removeQuoteCart(QuoteModel quote)
Removes the cart related to the given quoteQuoteModel
requote(QuoteModel quote, UserModel user)
Re-quote from an existing quote to create a new quoteprotected QuoteModel
saveUpdate(CartModel cart, QuoteModel outdatedQuote, QuoteModel updatedQuote)
protected void
setAssigneeOnQuote(QuoteModel quote, UserModel assignee)
void
setCalculationService(CalculationService calculationService)
void
setCartService(CartService cartService)
void
setCommerceCartService(CommerceCartService commerceCartService)
void
setCommerceQuoteDao(CommerceQuoteDao commerceQuoteDao)
void
setCommerceQuoteUtils(CommerceQuoteUtils commerceQuoteUtils)
void
setCommerceSaveCartService(CommerceSaveCartService commerceSaveCartService)
void
setEventService(EventService eventService)
void
setModelService(ModelService modelService)
void
setOrderQuoteDiscountValuesAccessor(OrderQuoteDiscountValuesAccessor orderQuoteDiscountValuesAccessor)
void
setQuoteActionValidationStrategy(QuoteActionValidationStrategy quoteActionValidationStrategy)
void
setQuoteAssignmentValidationStrategy(QuoteAssignmentValidationStrategy quoteAssignmentValidationStrategy)
void
setQuoteCartValidationStrategy(QuoteCartValidationStrategy quoteCartValidationStrategy)
void
setQuoteExpirationTimeValidationStrategy(QuoteExpirationTimeValidationStrategy quoteExpirationTimeValidationStrategy)
void
setQuoteMetadataValidationStrategy(QuoteMetadataValidationStrategy quoteMetadataValidationStrategy)
void
setQuoteSellerApproverAutoApprovalStrategy(QuoteSellerApproverAutoApprovalStrategy quoteSellerApproverAutoApprovalStrategy)
void
setQuoteService(QuoteService quoteService)
void
setQuoteSnapshotStateTransitionMap(java.util.Map<QuoteState,QuoteState> quoteSnapshotStateTransitionMap)
void
setQuoteStateSelectionStrategy(QuoteStateSelectionStrategy quoteStateSelectionStrategy)
void
setQuoteUpdateExpirationTimeStrategy(QuoteUpdateExpirationTimeStrategy quoteUpdateExpirationTimeStrategy)
void
setQuoteUpdateStateStrategy(QuoteUpdateStateStrategy quoteUpdateStateStrategy)
void
setQuoteUserTypeIdentificationStrategy(QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy)
void
setRequoteStrategy(RequoteStrategy requoteStrategy)
void
setSessionService(SessionService sessionService)
void
setUpdateQuoteFromCartStrategy(UpdateQuoteFromCartStrategy updateQuoteFromCartStrategy)
void
setUserService(UserService userService)
boolean
shouldAutoApproveTheQuoteForSellerApproval(QuoteModel quoteModel)
Checks whether a quote can be auto approved or requires seller approval based on the configured threshold.QuoteModel
submitQuote(QuoteModel quoteModel, UserModel userModel)
Submits a quote from buyer to seller representative or from seller representative to seller approver.void
unassignQuote(QuoteModel quote, UserModel assigner)
Unassigns the assignee from the quoteprotected CartModel
updateAndLoadQuoteCartWithAction(QuoteModel quoteModel, QuoteAction quoteAction, UserModel userModel)
QuoteModel
updateQuoteFromCart(CartModel cartModel, UserModel userModel)
Updates quote with data from cart (and existing quote).protected QuoteModel
updateQuoteFromCartInternal(CartModel cartModel)
protected void
validateDiscountRate(java.lang.Double discountRate, DiscountType discountType, AbstractOrderModel abstractOrderModel)
protected void
validateListNotEmpty(java.util.Collection paramToCheck, java.lang.String unknownIdException)
protected void
validateQuoteCart(CartModel cartModel)
void
validateQuoteThreshold(QuoteModel quote, UserModel user, CartModel sessionCart)
Validates if quote meets threshold.protected void
validateQuoteTotal(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:CommerceQuoteService
Creates 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:
createQuoteFromCart
in 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:CommerceQuoteService
Loads 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:
loadQuoteAsSessionCart
in 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:CommerceQuoteService
Removes the cart related to the given quote- Specified by:
removeQuoteCart
in 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:CommerceQuoteService
Submits 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:
submitQuote
in 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:CommerceQuoteService
Validates if quote meets threshold.- Specified by:
validateQuoteThreshold
in 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:CommerceQuoteService
Get 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:
getQuoteRequestThreshold
in interfaceCommerceQuoteService
- Returns:
- quote request threshold
-
validateQuoteTotal
protected void validateQuoteTotal(QuoteModel quoteModel)
-
approveQuote
public QuoteModel approveQuote(QuoteModel quoteModel, UserModel userModel)
Description copied from interface:CommerceQuoteService
Approve a quote from seller representative. Send a quote on submit event.- Specified by:
approveQuote
in 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:CommerceQuoteService
Reject a quote from seller representative. Send a quote on submit event.- Specified by:
rejectQuote
in 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:CommerceQuoteService
Updates quote with data from cart (and existing quote). Sets the cart as cartReference on to the new quote.- Specified by:
updateQuoteFromCart
in 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:CommerceQuoteService
Re-quote from an existing quote to create a new quote- Specified by:
requote
in 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:CommerceQuoteService
Retrieves the paged list of quotes according to the provided selection criteria.- Specified by:
getQuoteList
in 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:CommerceQuoteService
Finds a quote with highest version by code, customer and store.- Specified by:
getQuoteByCodeAndCustomerAndStore
in 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:CommerceQuoteService
Get currently allowed actions for a quote.- Specified by:
getAllowedActions
in 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:CommerceQuoteService
Accept and prepare checkout. Similar toCommerceQuoteService.loadQuoteAsSessionCart(QuoteModel, UserModel)
but for checkout.- Specified by:
acceptAndPrepareCheckout
in 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:CommerceQuoteService
Applies a quote specific discount to abstract order model given the discount rate and discount type.- Specified by:
applyQuoteDiscount
in interfaceCommerceQuoteService
- Parameters:
abstractOrderModel
- the abstract order model to add a discount to. Must either be aQuoteModel
or aCartModel
associated 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:CommerceQuoteService
Cancels a quote. The version of the quote visible to the user will have the state set to canceled.- Specified by:
cancelQuote
in 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:CommerceQuoteService
Assigns quote to an assignee- Specified by:
assignQuoteToUser
in 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:CommerceQuoteService
Unassigns the assignee from the quote- Specified by:
unassignQuote
in 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:CommerceQuoteService
Checks whether a quote can be auto approved or requires seller approval based on the configured threshold.- Specified by:
shouldAutoApproveTheQuoteForSellerApproval
in 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:CommerceQuoteService
Get the number of quotes for the specified user and store.- Specified by:
getQuotesCountForStoreAndUser
in 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:CommerceQuoteService
Validates if the quote cart can be checked-out or not- Specified by:
isQuoteCartValidForCheckout
in 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:CommerceQuoteService
Create a new quote snapshot for a given quote state and persist the model.- Specified by:
createQuoteSnapshotWithState
in 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)
-
-