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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanFields inherited from class org.broadleafcommerce.core.web.controller.account.AbstractCustomerAddressController
addressService, countryService, customerAddressesRedirect, customerAddressesView, customerAddressService, customerAddressValidator, initBinderService, isoService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCustomerAddress(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) removeCustomerAddress(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Long customerAddressId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) voidupdateCustomerAddress(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) protected voidvalidateCustomerOwnedData(org.broadleafcommerce.profile.core.domain.CustomerAddress customerAddress) viewCustomerAddress(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, Long customerAddressId) viewCustomerAddresses(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model) Methods inherited from class org.broadleafcommerce.core.web.controller.account.AbstractCustomerAddressController
getCustomerAddressesRedirect, getCustomerAddressesView, initBinder, populateCountries, populateCustomerAddressesMethods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
validateCustomerOwnedData
@Value("${validate.customer.owned.data:true}") protected boolean validateCustomerOwnedData -
addressUpdatedMessage
-
addressAddedMessage
-
addressRemovedMessage
-
addressRemovedErrorMessage
-
-
Constructor Details
-
BroadleafManageCustomerAddressesController
public BroadleafManageCustomerAddressesController()
-
-
Method Details
-
viewCustomerAddresses
public String viewCustomerAddresses(jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model) -
viewCustomerAddress
-
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
-
removeUnusedPhones
-
getAddressUpdatedMessage
-
getAddressAddedMessage
-
getAddressRemovedMessage
-
getAddressRemovedErrorMessage
-
validateCustomerOwnedData
protected void validateCustomerOwnedData(org.broadleafcommerce.profile.core.domain.CustomerAddress customerAddress)
-