org.nhindirect.config.service.impl
Class DomainServiceImpl

java.lang.Object
  extended by org.nhindirect.config.service.impl.DomainServiceImpl
All Implemented Interfaces:
DomainService

public class DomainServiceImpl
extends Object
implements DomainService

Service class for methods related to a Domain object.


Constructor Summary
DomainServiceImpl()
           
 
Method Summary
 void addDomain(Domain domain)
          Add a new Domain.
 Domain getDomain(Long id)
          Return a Domain matching the given ID.
 int getDomainCount()
          Get a count of Domains.
 Collection<Domain> getDomains(Collection<String> domainNames, EntityStatus status)
          Get a collection of all Domains matching the parameters.
 void init()
          Initialization method.
 Collection<Domain> listDomains(String lastDomainName, int maxResults)
          Return a list of Domains matching the parameters.
 void removeDomain(String domainName)
          Remove a Domain.
 Collection<Domain> searchDomain(String domain, EntityStatus status)
          Return a collection of Domains matching the parameters.
 void setDao(DomainDao aDao)
          Set the value of the DomainDao object.
 void updateDomain(Domain domain)
          Update a Domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainServiceImpl

public DomainServiceImpl()
Method Detail

init

public void init()
Initialization method.


addDomain

public void addDomain(Domain domain)
               throws ConfigurationServiceException
Description copied from interface: DomainService
Add a new Domain.

Specified by:
addDomain in interface DomainService
Parameters:
domain - The Domain to add.
Throws:
ConfigurationServiceException

updateDomain

public void updateDomain(Domain domain)
                  throws ConfigurationServiceException
Description copied from interface: DomainService
Update a Domain.

Specified by:
updateDomain in interface DomainService
Parameters:
domain - The Domain to update.
Throws:
ConfigurationServiceException

getDomainCount

public int getDomainCount()
                   throws ConfigurationServiceException
Description copied from interface: DomainService
Get a count of Domains.

Specified by:
getDomainCount in interface DomainService
Returns:
a count of Domains.
Throws:
ConfigurationServiceException

getDomains

public Collection<Domain> getDomains(Collection<String> domainNames,
                                     EntityStatus status)
                              throws ConfigurationServiceException
Description copied from interface: DomainService
Get a collection of all Domains matching the parameters.

Specified by:
getDomains in interface DomainService
Parameters:
domainNames - A collection of domain names.
status - An EntityStatus object.
Returns:
a collection of all Domains matching the parameters.
Throws:
ConfigurationServiceException

removeDomain

public void removeDomain(String domainName)
                  throws ConfigurationServiceException
Description copied from interface: DomainService
Remove a Domain.

Specified by:
removeDomain in interface DomainService
Parameters:
domainName - The name of the Domain to remove.
Throws:
ConfigurationServiceException

listDomains

public Collection<Domain> listDomains(String lastDomainName,
                                      int maxResults)
                               throws ConfigurationServiceException
Description copied from interface: DomainService
Return a list of Domains matching the parameters.

Specified by:
listDomains in interface DomainService
Parameters:
lastDomainName - The last domain name.
maxResults - The maximum number of results.
Returns:
a List of Domains matching the parameters.
Throws:
ConfigurationServiceException

searchDomain

public Collection<Domain> searchDomain(String domain,
                                       EntityStatus status)
Description copied from interface: DomainService
Return a collection of Domains matching the parameters.

Specified by:
searchDomain in interface DomainService
Parameters:
domain - The Domain name.
status - The Domain EntityStatus.
Returns:
a collection of Domains matching the parameters.

getDomain

public Domain getDomain(Long id)
Description copied from interface: DomainService
Return a Domain matching the given ID.

Specified by:
getDomain in interface DomainService
Parameters:
id - The ID of the Domain.
Returns:
a Domain matching the given ID.

setDao

public void setDao(DomainDao aDao)
Set the value of the DomainDao object.

Parameters:
aDao - The value of the DomainDao object.


Copyright © 2010. All Rights Reserved.