Class BroadleafManageQuoteController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
com.broadleafcommerce.quote.web.controller.BroadleafManageQuoteController
public class BroadleafManageQuoteController
extends org.broadleafcommerce.common.web.controller.BroadleafAbstractController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Stringprotected static Stringprotected static Stringprotected org.broadleafcommerce.core.order.service.OrderServiceprotected static Stringprotected static Stringprotected QuoteServiceprotected org.broadleafcommerce.core.web.service.UpdateCartService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItemToQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, org.broadleafcommerce.core.order.service.call.OrderItemRequestDTO itemRequest) protected StringaddQuoteItemNote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, Long quoteItemId, String note) addQuoteItemToCart(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteItemId) protected StringarchiveQuote(Long quoteId) protected StringcancelModifyQuote(Long quoteId, org.springframework.ui.Model model) createQuoteFromCart(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, String name, String message) protected voideditQuoteName(Long quoteId, String note) protected Stringprotected StringgetQuoteRedirect(Long quoteId) manageQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId) protected StringmodifyQuote(Long quoteId, org.springframework.ui.Model model) moveQuoteToCart(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId) removeItemFromQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, Long quoteItemId) protected QuoteretrieveAndValidateQuote(Long quoteId) submitQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, String message) Deprecated, for removal: This API element is subject to removal in a future version.submitQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, String name, String message) updateItemQuantityOnQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, org.broadleafcommerce.core.order.service.call.OrderItemRequestDTO itemRequest) viewQuotes(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
MANAGE_QUOTE_VIEW
-
MANAGE_ALL_QUOTES_VIEW
-
QUOTE_REDIRECT
-
QUOTE_ITEM_NOTE_MODAL
-
EDIT_QUOTE_NAME_MODAL
-
orderService
protected org.broadleafcommerce.core.order.service.OrderService orderService -
updateCartService
protected org.broadleafcommerce.core.web.service.UpdateCartService updateCartService -
quoteService
-
-
Constructor Details
-
BroadleafManageQuoteController
public BroadleafManageQuoteController()
-
-
Method Details
-
manageQuote
public String manageQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId) throws org.broadleafcommerce.common.exception.ServiceException, QuoteException - Throws:
org.broadleafcommerce.common.exception.ServiceExceptionQuoteException
-
submitQuote
@Deprecated(forRemoval=true) public String submitQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, String message) throws org.broadleafcommerce.common.exception.ServiceException, QuoteException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
org.broadleafcommerce.common.exception.ServiceExceptionQuoteException
-
submitQuote
public String submitQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, String name, String message) throws org.broadleafcommerce.common.exception.ServiceException, QuoteException - Throws:
org.broadleafcommerce.common.exception.ServiceExceptionQuoteException
-
viewQuotes
public String viewQuotes(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) -
createQuoteFromCart
public String createQuoteFromCart(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, String name, String message) throws org.broadleafcommerce.core.pricing.service.exception.PricingException, org.broadleafcommerce.core.order.service.exception.AddToCartException - Throws:
org.broadleafcommerce.core.pricing.service.exception.PricingExceptionorg.broadleafcommerce.core.order.service.exception.AddToCartException
-
moveQuoteToCart
public String moveQuoteToCart(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId) throws org.broadleafcommerce.core.order.service.exception.UpdateCartException, org.broadleafcommerce.common.exception.ServiceException, QuoteException - Throws:
org.broadleafcommerce.core.order.service.exception.UpdateCartExceptionorg.broadleafcommerce.common.exception.ServiceExceptionQuoteException
-
addQuoteItemToCart
public String addQuoteItemToCart(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteItemId) throws org.broadleafcommerce.core.order.service.exception.AddToCartException - Throws:
org.broadleafcommerce.core.order.service.exception.AddToCartException
-
addItemToQuote
public String addItemToQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, org.broadleafcommerce.core.order.service.call.OrderItemRequestDTO itemRequest) throws org.broadleafcommerce.common.exception.ServiceException, org.broadleafcommerce.core.order.service.exception.AddToCartException, QuoteException, org.broadleafcommerce.core.pricing.service.exception.PricingException - Throws:
org.broadleafcommerce.common.exception.ServiceExceptionorg.broadleafcommerce.core.order.service.exception.AddToCartExceptionQuoteExceptionorg.broadleafcommerce.core.pricing.service.exception.PricingException
-
updateItemQuantityOnQuote
public String updateItemQuantityOnQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, org.broadleafcommerce.core.order.service.call.OrderItemRequestDTO itemRequest) throws org.broadleafcommerce.common.exception.ServiceException, QuoteException - Throws:
org.broadleafcommerce.common.exception.ServiceExceptionQuoteException
-
removeItemFromQuote
public String removeItemFromQuote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, Long quoteItemId) throws org.broadleafcommerce.common.exception.ServiceException, QuoteException - Throws:
org.broadleafcommerce.common.exception.ServiceExceptionQuoteException
-
retrieveAndValidateQuote
protected Quote retrieveAndValidateQuote(Long quoteId) throws org.broadleafcommerce.common.exception.ServiceException, QuoteException - Throws:
org.broadleafcommerce.common.exception.ServiceExceptionQuoteException
-
addQuoteItemNote
protected String addQuoteItemNote(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long quoteId, Long quoteItemId, String note) throws org.broadleafcommerce.common.exception.ServiceException, QuoteException - Throws:
org.broadleafcommerce.common.exception.ServiceExceptionQuoteException
-
editQuoteName
-
archiveQuote
- Throws:
QuoteException
-
modifyQuote
protected String modifyQuote(Long quoteId, org.springframework.ui.Model model) throws QuoteException - Throws:
QuoteException
-
cancelModifyQuote
protected String cancelModifyQuote(Long quoteId, org.springframework.ui.Model model) throws QuoteException - Throws:
QuoteException
-
getManageAllQuotesView
-
getManageQuoteView
-
getQuoteBaseRedirect
-
getQuoteRedirect
-
getQuoteItemNoteModal
-
getEditQuoteNameModal
-