org.broadleafcommerce.core.web.controller.account
Class BroadleafManageCustomerAddressesController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.account.BroadleafManageCustomerAddressesController
public class BroadleafManageCustomerAddressesController
- extends BroadleafAbstractController
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
BroadleafManageCustomerAddressesController
public BroadleafManageCustomerAddressesController()
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.