Class DefaultAddressVerificationFacade
java.lang.Object
de.hybris.platform.commercefacades.address.impl.DefaultAddressVerificationFacade
- All Implemented Interfaces:
AddressVerificationFacade
Default implementation of AddressVerificationFacade.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,AddressVerificationErrorField> generateVerificationResultErrorMap(AddressVerificationResultData<AddressVerificationDecision, AddressFieldErrorData<AddressFieldType, AddressErrorCode>> result) protected Converter<AddressModel,AddressData> protected Converter<AddressData,AddressModel> protected AddressVerificationService<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType, AddressErrorCode>> protected ModelServicebooleanChecks the AddressVerificationService to see if the customer can ignore the suggestions that were provided.voidsetAddressConverter(Converter<AddressModel, AddressData> addressConverter) voidsetAddressReverseConverter(Converter<AddressData, AddressModel> addressReverseConverter) voidsetAddressVerificationService(AddressVerificationService<AddressVerificationDecision, AddressFieldErrorData<AddressFieldType, AddressErrorCode>> addressVerificationService) voidsetModelService(ModelService modelService) verifyAddressData(AddressData addressData) Calls the configurable AddressVerificationService to verify the incoming address.
-
Constructor Details
-
DefaultAddressVerificationFacade
public DefaultAddressVerificationFacade()
-
-
Method Details
-
verifyAddressData
public AddressVerificationResult<AddressVerificationDecision> verifyAddressData(AddressData addressData) Description copied from interface:AddressVerificationFacadeCalls the configurable AddressVerificationService to verify the incoming address. If the address is invalid the service will provide a list of possible addresses for the customer to choose from.- Specified by:
verifyAddressDatain interfaceAddressVerificationFacade- Parameters:
addressData- the address data to be verified.- Returns:
- a POJO containing the set of suggested addresses as well as any field errors.
-
isCustomerAllowedToIgnoreAddressSuggestions
public boolean isCustomerAllowedToIgnoreAddressSuggestions()Description copied from interface:AddressVerificationFacadeChecks the AddressVerificationService to see if the customer can ignore the suggestions that were provided.- Specified by:
isCustomerAllowedToIgnoreAddressSuggestionsin interfaceAddressVerificationFacade- Returns:
- true if the customer can ignore suggestions, false if not.
-
generateVerificationResultErrorMap
protected Map<String,AddressVerificationErrorField> generateVerificationResultErrorMap(AddressVerificationResultData<AddressVerificationDecision, AddressFieldErrorData<AddressFieldType, AddressErrorCode>> result) -
getModelService
-
setModelService
-
getAddressVerificationService
protected AddressVerificationService<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType, getAddressVerificationService()AddressErrorCode>> -
setAddressVerificationService
public void setAddressVerificationService(AddressVerificationService<AddressVerificationDecision, AddressFieldErrorData<AddressFieldType, AddressErrorCode>> addressVerificationService) -
getAddressConverter
-
setAddressConverter
-
getAddressReverseConverter
-
setAddressReverseConverter
-