org.nhindirect.config.service.impl
Class AddressServiceImpl

java.lang.Object
  extended by org.nhindirect.config.service.impl.AddressServiceImpl
All Implemented Interfaces:
AddressService

public class AddressServiceImpl
extends Object
implements AddressService

Service class for methods related to an Address object.


Constructor Summary
AddressServiceImpl()
           
 
Method Summary
 void addAddress(Collection<org.nhindirect.config.store.Address> address)
          Add an Address.
 Collection<org.nhindirect.config.store.Address> getAddress(Collection<String> addressNames, org.nhindirect.config.store.EntityStatus status)
          Get a collection of all Addresses matching the parameters.
 int getAddressCount()
          Get a count of Addresses.
 void init()
          Initialization method.
 Collection<org.nhindirect.config.store.Address> listAddresss(String lastAddressName, int maxResults)
          Return a list of Addresses matching the parameters.
 void removeAddress(String addressName)
          Remove an Address.
 void setDao(org.nhindirect.config.store.dao.AddressDao dao)
          Set the value of the AddressDao object.
 void updateAddress(org.nhindirect.config.store.Address address)
          Update an Address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressServiceImpl

public AddressServiceImpl()
Method Detail

init

public void init()
Initialization method.


addAddress

public void addAddress(Collection<org.nhindirect.config.store.Address> address)
                throws ConfigurationServiceException
Description copied from interface: AddressService
Add an Address.

Specified by:
addAddress in interface AddressService
Parameters:
address - The Address to add.
Throws:
ConfigurationServiceException

updateAddress

public void updateAddress(org.nhindirect.config.store.Address address)
                   throws ConfigurationServiceException
Description copied from interface: AddressService
Update an Address.

Specified by:
updateAddress in interface AddressService
Parameters:
address - The Address to update.
Throws:
ConfigurationServiceException

getAddressCount

public int getAddressCount()
                    throws ConfigurationServiceException
Description copied from interface: AddressService
Get a count of Addresses.

Specified by:
getAddressCount in interface AddressService
Returns:
a count of Addresses.
Throws:
ConfigurationServiceException

getAddress

public Collection<org.nhindirect.config.store.Address> getAddress(Collection<String> addressNames,
                                                                  org.nhindirect.config.store.EntityStatus status)
                                                           throws ConfigurationServiceException
Description copied from interface: AddressService
Get a collection of all Addresses matching the parameters.

Specified by:
getAddress in interface AddressService
Parameters:
addressNames - A collection of address names.
status - An EntityStatus object.
Returns:
a collection of all Addresses matching the parameters.
Throws:
ConfigurationServiceException

removeAddress

public void removeAddress(String addressName)
                   throws ConfigurationServiceException
Description copied from interface: AddressService
Remove an Address.

Specified by:
removeAddress in interface AddressService
Parameters:
addressName - The address name.
Throws:
ConfigurationServiceException

listAddresss

public Collection<org.nhindirect.config.store.Address> listAddresss(String lastAddressName,
                                                                    int maxResults)
                                                             throws ConfigurationServiceException
Description copied from interface: AddressService
Return a list of Addresses matching the parameters.

Specified by:
listAddresss in interface AddressService
Parameters:
lastAddressName - The last address name.
maxResults - The maximum number of results.
Returns:
a list of Addresses matching the parameters.
Throws:
ConfigurationServiceException

setDao

public void setDao(org.nhindirect.config.store.dao.AddressDao dao)
Set the value of the AddressDao object.

Parameters:
dao - The value of the AddressDao object.


Copyright © 2011. All Rights Reserved.