Class DefaultAddressVerificationResultHandler

java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.forms.verification.impl.DefaultAddressVerificationResultHandler
All Implemented Interfaces:
AddressVerificationResultHandler

@Component("addressVerificationResultHandler") public class DefaultAddressVerificationResultHandler extends Object implements AddressVerificationResultHandler
Default implementation of AddressVerificationResultHandler.
  • Constructor Details

    • DefaultAddressVerificationResultHandler

      public DefaultAddressVerificationResultHandler()
  • Method Details

    • handleResult

      public boolean handleResult(AddressVerificationResult verificationResult, AddressData newAddress, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, org.springframework.validation.Errors bindingResult, boolean customerBypass, String successMsg)
      Description copied from interface: AddressVerificationResultHandler
      Given the result returned by an address verification service, determine if the address is valid or requires corrections from the user.
      Specified by:
      handleResult in interface AddressVerificationResultHandler
      Returns:
      true if the result has errors or suggested addresses, false if it is valid.
    • resultHasErrors

      protected boolean resultHasErrors(AddressVerificationResult verificationResult)
    • resultHasSuggestedAddresses

      protected boolean resultHasSuggestedAddresses(AddressVerificationResult verificationResult)
    • isResultUnknown

      protected boolean isResultUnknown(AddressVerificationResult verificationResult)
    • addFieldErrorsToBindingResult

      protected void addFieldErrorsToBindingResult(Map<String,AddressVerificationErrorField> fieldErrors, org.springframework.validation.Errors bindingResult)
    • processFields

      protected void processFields(Map<String,AddressVerificationErrorField> fieldErrors, org.springframework.validation.Errors bindingResult, String errorKey)