Class AbstractCustomerAddressController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.account.AbstractCustomerAddressController
- Direct Known Subclasses:
BroadleafManageCustomerAddressesController
An abstract controller that provides convenience methods and resource declarations for its children.
Operations that are shared between controllers that deal with Customer Addresses belong here.
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AddressServiceprotected CountryServiceprotected static Stringprotected static Stringprotected CustomerAddressServiceprotected CustomerAddressValidatorprotected InitBinderServiceprotected ISOService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitBinder(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.bind.ServletRequestDataBinder binder) Initializes some custom binding operations for the managing an address.protected List<CustomerAddress>Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
customerAddressesView
-
customerAddressesRedirect
-
customerAddressService
-
addressService
-
countryService
-
customerAddressValidator
-
isoService
-
initBinderService
-
-
Constructor Details
-
AbstractCustomerAddressController
public AbstractCustomerAddressController()
-
-
Method Details
-
initBinder
protected void initBinder(jakarta.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
-
populateCountries
-
populateCustomerAddresses
-
getCustomerAddressesView
-
getCustomerAddressesRedirect
-