org.nhindirect.config.service
Interface AddressService

All Known Subinterfaces:
ConfigurationService
All Known Implementing Classes:
AddressServiceImpl, ConfigurationServiceImpl

public interface AddressService

Service class for methods related to an Address object.


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.
 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 updateAddress(org.nhindirect.config.store.Address address)
          Update an Address.
 

Method Detail

addAddress

void addAddress(Collection<org.nhindirect.config.store.Address> address)
                throws ConfigurationServiceException
Add an Address.

Parameters:
address - The Address to add.
Throws:
ConfigurationServiceException

updateAddress

void updateAddress(org.nhindirect.config.store.Address address)
                   throws ConfigurationServiceException
Update an Address.

Parameters:
address - The Address to update.
Throws:
ConfigurationServiceException

getAddressCount

int getAddressCount()
                    throws ConfigurationServiceException
Get a count of Addresses.

Returns:
a count of Addresses.
Throws:
ConfigurationServiceException

getAddress

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

Parameters:
addressNames - A collection of address names.
status - An EntityStatus object.
Returns:
a collection of all Addresses matching the parameters.
Throws:
ConfigurationServiceException

removeAddress

void removeAddress(String addressName)
                   throws ConfigurationServiceException
Remove an Address.

Parameters:
addressName - The address name.
Throws:
ConfigurationServiceException

listAddresss

Collection<org.nhindirect.config.store.Address> listAddresss(String lastAddressName,
                                                             int maxResults)
                                                             throws ConfigurationServiceException
Return a list of Addresses matching the parameters.

Parameters:
lastAddressName - The last address name.
maxResults - The maximum number of results.
Returns:
a list of Addresses matching the parameters.
Throws:
ConfigurationServiceException


Copyright © 2014. All Rights Reserved.