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 Details

    • customerAddressesView

      protected static String customerAddressesView
    • customerAddressesRedirect

      protected static String 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

      protected CustomerAddressValidator customerAddressValidator
    • isoService

      protected org.broadleafcommerce.common.i18n.service.ISOService isoService
    • initBinderService

      protected InitBinderService 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

      protected List<org.broadleafcommerce.profile.core.domain.Country> populateCountries()
    • populateCustomerAddresses

      protected List<org.broadleafcommerce.profile.core.domain.CustomerAddress> populateCustomerAddresses()
    • getCustomerAddressesView

      public String getCustomerAddressesView()
    • getCustomerAddressesRedirect

      public String getCustomerAddressesRedirect()