org.broadleafcommerce.profile.core.service
Class AddressServiceImpl
java.lang.Object
org.broadleafcommerce.profile.core.service.AddressServiceImpl
- All Implemented Interfaces:
- AddressService
@Service(value="blAddressService")
public class AddressServiceImpl
- extends Object
- implements AddressService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addressDao
protected AddressDao addressDao
moduleConfigService
protected ModuleConfigurationService moduleConfigService
providers
protected List<AddressVerificationProvider> providers
AddressServiceImpl
public AddressServiceImpl()
saveAddress
public Address saveAddress(Address address)
- Specified by:
saveAddress in interface AddressService
readAddressById
public Address readAddressById(Long addressId)
- Specified by:
readAddressById in interface AddressService
create
public Address create()
- Specified by:
create in interface AddressService
delete
public void delete(Address address)
- Specified by:
delete in interface AddressService
verifyAddress
public List<Address> verifyAddress(Address address)
throws AddressVerificationException
- Description copied from interface:
AddressService
- Verifies the address and returns a collection of addresses. If the address was
invalid but close to a match, this method should return a list of one or more addresses that may be valid.
If the address is valid, implementations should return the valid address in the list.
Implementations may set the tokenized address, zip four, and verification level. If the address could not
be validated, implementors should throw an
AddressValidationException.
For example, an address may be close, but missing zip four. This service should return
the address in question with zip four populated.
- Specified by:
verifyAddress in interface AddressService
- Returns:
-
- Throws:
AddressVerificationException
Copyright © 2013. All Rights Reserved.