org.broadleafcommerce.core.web.controller.account
public class BroadleafManageCustomerAddressesController extends BroadleafAbstractController
| Modifier and Type | Field and Description |
|---|---|
protected String |
addressAddedMessage |
protected String |
addressRemovedErrorMessage |
protected String |
addressRemovedMessage |
protected String |
addressUpdatedMessage |
protected static String |
customerAddressesRedirect |
protected static String |
customerAddressesView |
| Constructor and Description |
|---|
BroadleafManageCustomerAddressesController() |
| Modifier and Type | Method and Description |
|---|---|
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() |
static String |
getCustomerAddressesRedirect() |
static 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) |
static void |
setCustomerAddressesRedirect(String customerAddressesRedirect) |
static void |
setCustomerAddressesView(String customerAddressesView) |
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) |
isAjaxRequestprotected String addressUpdatedMessage
protected String addressAddedMessage
protected String addressRemovedMessage
protected String addressRemovedErrorMessage
protected static String customerAddressesView
protected static String customerAddressesRedirect
public BroadleafManageCustomerAddressesController()
protected void initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
throws Exception
request - binder - Exceptionprotected List<CustomerAddress> populateCustomerAddresses()
public String viewCustomerAddresses(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
public String viewCustomerAddress(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Long customerAddressId)
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
ServiceExceptionpublic 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
ServiceExceptionpublic String removeCustomerAddress(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Long customerAddressId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
public static String getCustomerAddressesView()
public static void setCustomerAddressesView(String customerAddressesView)
public static String getCustomerAddressesRedirect()
public static void setCustomerAddressesRedirect(String customerAddressesRedirect)
public String getAddressUpdatedMessage()
public String getAddressAddedMessage()
public String getAddressRemovedMessage()
public String getAddressRemovedErrorMessage()
Copyright © 2015. All Rights Reserved.