Class DefaultSapCpiQuoteService
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.DefaultCommerceQuoteService
-
- com.sap.hybris.sapquoteintegration.outbound.service.impl.DefaultSapCpiQuoteService
-
- All Implemented Interfaces:
CommerceQuoteService
public class DefaultSapCpiQuoteService extends DefaultCommerceQuoteService
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceQuoteService
ABSTRACT_ORDER_DESCRIPTION, ABSTRACT_ORDER_NAME, DATE_TIME_FORMAT
-
-
Constructor Summary
Constructors Constructor Description DefaultSapCpiQuoteService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelQuote(QuoteModel quoteModel, UserModel userModel)Cancels a quote.java.util.Set<QuoteAction>getAllowedActions(QuoteModel quoteModel, UserModel userModel)Get currently allowed actions for a quote.protected QuoteModelsaveUpdate(CartModel cart, QuoteModel outdatedQuote, QuoteModel updatedQuote)QuoteModelsubmitQuote(QuoteModel quoteModel, UserModel userModel)Submits a quote from buyer to seller representative or from seller representative to seller approver.-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceQuoteService
acceptAndPrepareCheckout, applyQuoteDiscount, approveQuote, assignQuoteToUser, createDiscountValue, createQuoteFromCart, createQuoteFromCartInternal, createQuoteSnapshot, createQuoteSnapshotWithState, executeQuoteAssignment, getCalculationService, getCartService, getCommerceCartService, getCommerceQuoteDao, getCommerceQuoteUtils, getCommerceSaveCartService, getCurrentDateTimeFormatted, getEventService, getModelService, getOrderQuoteDiscountValuesAccessor, getQuoteActionValidationStrategy, getQuoteAssignmentValidationStrategy, getQuoteByCodeAndCustomerAndStore, getQuoteCartValidationStrategy, getQuoteExpirationTimeValidationStrategy, getQuoteFromSessionCart, getQuoteList, getQuoteMetadataValidationStrategy, getQuoteRequestThreshold, getQuotesCountForStoreAndUser, getQuoteSellerApproverAutoApprovalStrategy, getQuoteService, getQuoteSnapshotStateTransitionMap, getQuoteStateSelectionStrategy, getQuoteUpdateExpirationTimeStrategy, getQuoteUpdateStateStrategy, getQuoteUserTypeIdentificationStrategy, getRequoteStrategy, getSessionService, getUpdateQuoteFromCartStrategy, getUserService, hasQuoteInSessionCart, isQuoteCartValidForCheckout, isRequestThresholdRequired, isSessionQuoteSameAsRequestedQuote, loadQuoteAsSessionCart, rejectQuote, removeQuoteCart, requote, setAssigneeOnQuote, setCalculationService, setCartService, setCommerceCartService, setCommerceQuoteDao, setCommerceQuoteUtils, setCommerceSaveCartService, setEventService, setModelService, setOrderQuoteDiscountValuesAccessor, setQuoteActionValidationStrategy, setQuoteAssignmentValidationStrategy, setQuoteCartValidationStrategy, setQuoteExpirationTimeValidationStrategy, setQuoteMetadataValidationStrategy, setQuoteSellerApproverAutoApprovalStrategy, setQuoteService, setQuoteSnapshotStateTransitionMap, setQuoteStateSelectionStrategy, setQuoteUpdateExpirationTimeStrategy, setQuoteUpdateStateStrategy, setQuoteUserTypeIdentificationStrategy, setRequoteStrategy, setSessionService, setUpdateQuoteFromCartStrategy, setUserService, shouldAutoApproveTheQuoteForSellerApproval, unassignQuote, updateAndLoadQuoteCartWithAction, updateQuoteFromCart, updateQuoteFromCartInternal, validateDiscountRate, validateListNotEmpty, validateQuoteCart, validateQuoteThreshold, validateQuoteTotal
-
-
-
-
Method Detail
-
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- Overrides:
cancelQuotein classDefaultCommerceQuoteService- Parameters:
quoteModel- the quote to canceluserModel- the user performing the operation on the quote
-
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- Overrides:
submitQuotein classDefaultCommerceQuoteService- Parameters:
quoteModel- the quote to processuserModel- the user performing the operation on the quote- Returns:
- the updated quote
-
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- Overrides:
getAllowedActionsin classDefaultCommerceQuoteService- 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.
-
saveUpdate
protected QuoteModel saveUpdate(CartModel cart, QuoteModel outdatedQuote, QuoteModel updatedQuote)
- Overrides:
saveUpdatein classDefaultCommerceQuoteService
-
-