org.broadleafcommerce.profile.core.service
Class AddressServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.profile.core.service.AddressServiceImpl
All Implemented Interfaces:
AddressService

@Service(value="blAddressService")
public class AddressServiceImpl
extends Object
implements AddressService


Field Summary
protected  AddressDao addressDao
           
protected  ModuleConfigurationService moduleConfigService
           
protected  List<AddressVerificationProvider> providers
           
 
Constructor Summary
AddressServiceImpl()
           
 
Method Summary
 Address create()
           
 void delete(Address address)
           
 Address readAddressById(Long addressId)
           
 Address saveAddress(Address address)
           
 List<Address> verifyAddress(Address address)
          Verifies the address and returns a collection of addresses.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addressDao

protected AddressDao addressDao

moduleConfigService

protected ModuleConfigurationService moduleConfigService

providers

protected List<AddressVerificationProvider> providers
Constructor Detail

AddressServiceImpl

public AddressServiceImpl()
Method Detail

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.