org.broadleafcommerce.core.web.controller.account
Class BroadleafManageCustomerAddressesController

java.lang.Object
  extended by org.broadleafcommerce.common.web.controller.BroadleafAbstractController
      extended by org.broadleafcommerce.core.web.controller.account.BroadleafManageCustomerAddressesController

public class BroadleafManageCustomerAddressesController
extends BroadleafAbstractController


Field Summary
protected  String addressAddedMessage
           
protected  String addressRemovedErrorMessage
           
protected  String addressRemovedMessage
           
protected  String addressUpdatedMessage
           
protected static String customerAddressesRedirect
           
protected static String customerAddressesView
           
 
Constructor Summary
BroadleafManageCustomerAddressesController()
           
 
Method Summary
 String addCustomerAddress(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, CustomerAddressForm form, org.springframework.validation.BindingResult result, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
           
 String getAddressAddedMessage()
           
 String getAddressRemovedErrorMessage()
           
 String getAddressRemovedMessage()
           
 String getAddressUpdatedMessage()
           
 String getCustomerAddressesRedirect()
           
 String getCustomerAddressesView()
           
protected  void initBinder(javax.servlet.http.HttpServletRequest request, org.springframework.web.bind.ServletRequestDataBinder binder)
          Initializes some custom binding operations for the managing an address.
protected  List<Country> populateCountries()
           
protected  List<CustomerAddress> populateCustomerAddresses()
           
protected  List<State> populateStates()
           
 String removeCustomerAddress(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Long customerAddressId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
           
 String updateCustomerAddress(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Long customerAddressId, CustomerAddressForm form, org.springframework.validation.BindingResult result, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
           
 String viewCustomerAddress(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Long customerAddressId)
           
 String viewCustomerAddresses(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
           
 
Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
getContextPath, isAjaxRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addressUpdatedMessage

protected String addressUpdatedMessage

addressAddedMessage

protected String addressAddedMessage

addressRemovedMessage

protected String addressRemovedMessage

addressRemovedErrorMessage

protected String addressRemovedErrorMessage

customerAddressesView

protected static String customerAddressesView

customerAddressesRedirect

protected static String customerAddressesRedirect
Constructor Detail

BroadleafManageCustomerAddressesController

public BroadleafManageCustomerAddressesController()
Method Detail

initBinder

protected void initBinder(javax.servlet.http.HttpServletRequest request,
                          org.springframework.web.bind.ServletRequestDataBinder binder)
                   throws Exception
Initializes some custom binding operations for the managing an address. More specifically, this method will attempt to bind state and country abbreviations to actual State and Country objects when the String representation of the abbreviation is submitted.

Parameters:
request -
binder -
Throws:
Exception

populateStates

protected List<State> populateStates()

populateCountries

protected List<Country> populateCountries()

populateCustomerAddresses

protected List<CustomerAddress> populateCustomerAddresses()

viewCustomerAddresses

public String viewCustomerAddresses(javax.servlet.http.HttpServletRequest request,
                                    org.springframework.ui.Model model)

viewCustomerAddress

public String viewCustomerAddress(javax.servlet.http.HttpServletRequest request,
                                  org.springframework.ui.Model model,
                                  Long customerAddressId)

addCustomerAddress

public String addCustomerAddress(javax.servlet.http.HttpServletRequest request,
                                 org.springframework.ui.Model model,
                                 CustomerAddressForm form,
                                 org.springframework.validation.BindingResult result,
                                 org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
                          throws ServiceException
Throws:
ServiceException

updateCustomerAddress

public String updateCustomerAddress(javax.servlet.http.HttpServletRequest request,
                                    org.springframework.ui.Model model,
                                    Long customerAddressId,
                                    CustomerAddressForm form,
                                    org.springframework.validation.BindingResult result,
                                    org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
                             throws ServiceException
Throws:
ServiceException

removeCustomerAddress

public String removeCustomerAddress(javax.servlet.http.HttpServletRequest request,
                                    org.springframework.ui.Model model,
                                    Long customerAddressId,
                                    org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)

getCustomerAddressesView

public String getCustomerAddressesView()

getCustomerAddressesRedirect

public String getCustomerAddressesRedirect()

getAddressUpdatedMessage

public String getAddressUpdatedMessage()

getAddressAddedMessage

public String getAddressAddedMessage()

getAddressRemovedMessage

public String getAddressRemovedMessage()

getAddressRemovedErrorMessage

public String getAddressRemovedErrorMessage()


Copyright © 2013. All Rights Reserved.