Class AbstractCustomerAddressController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.account.AbstractCustomerAddressController
- Direct Known Subclasses:
BroadleafManageCustomerAddressesController
public class AbstractCustomerAddressController
extends org.broadleafcommerce.common.web.controller.BroadleafAbstractController
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 org.broadleafcommerce.profile.core.service.AddressServiceprotected org.broadleafcommerce.profile.core.service.CountryServiceprotected static Stringprotected static Stringprotected org.broadleafcommerce.profile.core.service.CustomerAddressServiceprotected CustomerAddressValidatorprotected InitBinderServiceprotected org.broadleafcommerce.common.i18n.service.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<org.broadleafcommerce.profile.core.domain.Country>protected List<org.broadleafcommerce.profile.core.domain.CustomerAddress>Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
customerAddressesView
-
customerAddressesRedirect
-
customerAddressService
protected org.broadleafcommerce.profile.core.service.CustomerAddressService customerAddressService -
addressService
protected org.broadleafcommerce.profile.core.service.AddressService addressService -
countryService
protected org.broadleafcommerce.profile.core.service.CountryService countryService -
customerAddressValidator
-
isoService
protected org.broadleafcommerce.common.i18n.service.ISOService 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
protected List<org.broadleafcommerce.profile.core.domain.CustomerAddress> populateCustomerAddresses() -
getCustomerAddressesView
-
getCustomerAddressesRedirect
-