Class BroadleafManageCustomerAddressesController

java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.account.AbstractCustomerAddressController
org.broadleafcommerce.core.web.controller.account.BroadleafManageCustomerAddressesController

public class BroadleafManageCustomerAddressesController extends AbstractCustomerAddressController
  • Field Details

    • validateCustomerOwnedData

      @Value("${validate.customer.owned.data:true}") protected boolean validateCustomerOwnedData
    • addressUpdatedMessage

      protected String addressUpdatedMessage
    • addressAddedMessage

      protected String addressAddedMessage
    • addressRemovedMessage

      protected String addressRemovedMessage
    • addressRemovedErrorMessage

      protected String addressRemovedErrorMessage
  • Constructor Details

    • BroadleafManageCustomerAddressesController

      public BroadleafManageCustomerAddressesController()
  • Method Details

    • viewCustomerAddresses

      public String viewCustomerAddresses(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
    • viewCustomerAddress

      public String viewCustomerAddress(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Long customerAddressId)
    • addCustomerAddress

      public String addCustomerAddress(jakarta.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 org.broadleafcommerce.common.exception.ServiceException
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
    • updateCustomerAddress

      public String updateCustomerAddress(jakarta.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 org.broadleafcommerce.common.exception.ServiceException
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
    • removeCustomerAddress

      public String removeCustomerAddress(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Long customerAddressId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
    • removeUnusedPhones

      public void removeUnusedPhones(CustomerAddressForm form)
    • getAddressUpdatedMessage

      public String getAddressUpdatedMessage()
    • getAddressAddedMessage

      public String getAddressAddedMessage()
    • getAddressRemovedMessage

      public String getAddressRemovedMessage()
    • getAddressRemovedErrorMessage

      public String getAddressRemovedErrorMessage()
    • validateCustomerOwnedData

      protected void validateCustomerOwnedData(org.broadleafcommerce.profile.core.domain.CustomerAddress customerAddress)