Class DeliveryAddressCheckoutStepController

All Implemented Interfaces:
CheckoutStepController
Direct Known Subclasses:
ChineseDeliveryAddressCheckoutStepController

public class DeliveryAddressCheckoutStepController extends AbstractCheckoutStepController
  • Constructor Details

    • DeliveryAddressCheckoutStepController

      public DeliveryAddressCheckoutStepController()
  • Method Details

    • enterStep

      @RequestMapping(value="/add", method=GET) public String enterStep(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws CMSItemNotFoundException
      Description copied from interface: CheckoutStepController
      Swapping the parameter order might break the validation aspect from working.
      Returns:
      returns the result for entering the checkout step
      Throws:
      CMSItemNotFoundException
    • add

      @RequestMapping(value="/add", method=POST) public String add(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • processAddressVisibilityAndDefault

      protected void processAddressVisibilityAndDefault(AddressForm addressForm, AddressData newAddress)
    • editAddressForm

      @RequestMapping(value="/edit", method=GET) public String editAddressForm(@RequestParam("editAddressCode") String editAddressCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • edit

      @RequestMapping(value="/edit", method=POST) public String edit(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • processAddressVisibility

      protected void processAddressVisibility(AddressForm addressForm, AddressData newAddress)
    • removeAddress

      @RequestMapping(value="/remove", method={GET,POST}) public String removeAddress(@RequestParam("addressCode") String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, org.springframework.ui.Model model) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • doSelectSuggestedAddress

      @RequestMapping(value="/select", method=POST) public String doSelectSuggestedAddress(AddressForm addressForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
    • doSelectDeliveryAddress

      @RequestMapping(value="/select", method=GET) public String doSelectDeliveryAddress(@RequestParam("selectedAddressCode") String selectedAddressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      This method gets called when the "Use this Address" button is clicked. It sets the selected delivery address on the checkout facade - if it has changed, and reloads the page highlighting the selected delivery address.
      Parameters:
      selectedAddressCode - - the id of the delivery address.
      Returns:
      - a URL to the page to load.
    • setDeliveryAddress

      protected void setDeliveryAddress(AddressData selectedAddressData)
    • back

      @RequestMapping(value="/back", method=GET) public String back(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      Returns:
      checkoutstep link for navigating back
    • next

      @RequestMapping(value="/next", method=GET) public String next(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      Returns:
      checkoutstep link for navigating next
    • getBreadcrumbKey

      protected String getBreadcrumbKey()
    • getCheckoutStep

      protected CheckoutStep getCheckoutStep()
    • populateCommonModelAttributes

      protected void populateCommonModelAttributes(org.springframework.ui.Model model, CartData cartData, AddressForm addressForm) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException