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 Details

    • MANAGE_QUOTE_VIEW

      protected static String MANAGE_QUOTE_VIEW
    • MANAGE_ALL_QUOTES_VIEW

      protected static String MANAGE_ALL_QUOTES_VIEW
    • QUOTE_REDIRECT

      protected static String QUOTE_REDIRECT
    • QUOTE_ITEM_NOTE_MODAL

      protected static String QUOTE_ITEM_NOTE_MODAL
    • EDIT_QUOTE_NAME_MODAL

      protected static String EDIT_QUOTE_NAME_MODAL
    • orderService

      protected org.broadleafcommerce.core.order.service.OrderService orderService
    • updateCartService

      protected org.broadleafcommerce.core.web.service.UpdateCartService updateCartService
    • quoteService

      protected QuoteService 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.ServiceException
      QuoteException
    • 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.ServiceException
      QuoteException
    • 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.ServiceException
      QuoteException
    • 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.PricingException
      org.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.UpdateCartException
      org.broadleafcommerce.common.exception.ServiceException
      QuoteException
    • 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.ServiceException
      org.broadleafcommerce.core.order.service.exception.AddToCartException
      QuoteException
      org.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.ServiceException
      QuoteException
    • 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.ServiceException
      QuoteException
    • retrieveAndValidateQuote

      protected Quote retrieveAndValidateQuote(Long quoteId) throws org.broadleafcommerce.common.exception.ServiceException, QuoteException
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
      QuoteException
    • 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.ServiceException
      QuoteException
    • editQuoteName

      protected void editQuoteName(Long quoteId, String note)
    • archiveQuote

      protected String archiveQuote(Long quoteId) throws QuoteException
      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

      public String getManageAllQuotesView()
    • getManageQuoteView

      public String getManageQuoteView()
    • getQuoteBaseRedirect

      public String getQuoteBaseRedirect()
    • getQuoteRedirect

      public String getQuoteRedirect(Long quoteId)
    • getQuoteItemNoteModal

      protected String getQuoteItemNoteModal()
    • getEditQuoteNameModal

      protected String getEditQuoteNameModal()