Class BroadleafI18nShippingInfoController

java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController
com.broadleafcommerce.i18n.enterprise.web.controller.AbstractI18nCheckoutController
com.broadleafcommerce.i18n.enterprise.web.controller.BroadleafI18nShippingInfoController

public class BroadleafI18nShippingInfoController extends AbstractI18nCheckoutController

Additional Method to clear the Shipping Address on the Order if there is a request to change the country on an already persisted Address. This is required to re-render the DynamicRegionalForm for a particular ISOCountry

Author:
Elbert Bautista (elbertbautista)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    protected static final String
     

    Fields inherited from class com.broadleafcommerce.i18n.enterprise.web.controller.AbstractI18nCheckoutController

    dynamicRegionalFormService

    Fields inherited from class org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController

    ACTIVE_STAGE, addressService, baseConfirmationView, billingInfoFormValidator, cartPageRedirect, cartStateService, checkoutControllerExtensionManager, checkoutPageRedirect, checkoutService, checkoutStagesPartial, checkoutView, countryService, countrySubdivisionService, customerAddressService, customerPaymentService, customerService, dtoTranslationService, fulfillmentGroupService, fulfillmentOptionService, giftCardInfoFormValidator, initBinderService, isoService, multishipAddAddressFormValidator, orderInfoFormValidator, orderMultishipOptionService, orderPaymentService, orderService, paymentGatewayCheckoutService, paymentInfoFormValidator, phoneService, shippingInfoFormValidator
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    changeMultiShippingAddressCountry(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.broadleafcommerce.core.web.checkout.model.ShippingInfoForm shippingForm, org.springframework.validation.BindingResult result)
     
    changeShippingAddressCountry(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.broadleafcommerce.core.web.checkout.model.ShippingInfoForm shippingForm, org.springframework.validation.BindingResult result)
     
     
     

    Methods inherited from class com.broadleafcommerce.i18n.enterprise.web.controller.AbstractI18nCheckoutController

    populateFormData, populateISOCountries

    Methods inherited from class org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController

    getBaseConfirmationView, getCartPageRedirect, getCheckoutPageRedirect, getCheckoutStagesPartial, getCheckoutView, getConfirmationView, initBinder, populateModelWithReferenceData

    Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController

    addDeepLink, getContextPath, isAjaxRequest, jsonResponse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • BroadleafI18nShippingInfoController

      public BroadleafI18nShippingInfoController()
  • Method Details

    • changeShippingAddressCountry

      public String changeShippingAddressCountry(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.broadleafcommerce.core.web.checkout.model.ShippingInfoForm shippingForm, org.springframework.validation.BindingResult result) throws org.broadleafcommerce.core.pricing.service.exception.PricingException, org.broadleafcommerce.common.exception.ServiceException
      Throws:
      org.broadleafcommerce.core.pricing.service.exception.PricingException
      org.broadleafcommerce.common.exception.ServiceException
    • changeMultiShippingAddressCountry

      public String changeMultiShippingAddressCountry(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.broadleafcommerce.core.web.checkout.model.ShippingInfoForm shippingForm, org.springframework.validation.BindingResult result) throws org.broadleafcommerce.core.pricing.service.exception.PricingException, org.broadleafcommerce.common.exception.ServiceException
      Throws:
      org.broadleafcommerce.core.pricing.service.exception.PricingException
      org.broadleafcommerce.common.exception.ServiceException
    • getSingleShipView

      public String getSingleShipView()
    • getMultiShippingView

      public String getMultiShippingView()