public class DomainServiceImpl extends Object implements DomainService
| Constructor and Description |
|---|
DomainServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDomain(org.nhindirect.config.store.Domain domain)
Add a new Domain.
|
org.nhindirect.config.store.Domain |
getDomain(Long id)
Return a Domain matching the given ID.
|
int |
getDomainCount()
Get a count of Domains.
|
Collection<org.nhindirect.config.store.Domain> |
getDomains(Collection<String> domainNames,
org.nhindirect.config.store.EntityStatus status)
Get a collection of all Domains matching the parameters.
|
void |
init()
Initialization method.
|
Collection<org.nhindirect.config.store.Domain> |
listDomains(String lastDomainName,
int maxResults)
Return a list of Domains matching the parameters.
|
void |
removeDomain(String domainName)
Remove a Domain.
|
void |
removeDomainById(Long domainId)
Remove a Domain.
|
Collection<org.nhindirect.config.store.Domain> |
searchDomain(String domain,
org.nhindirect.config.store.EntityStatus status)
Return a collection of Domains matching the parameters.
|
void |
setDao(org.nhindirect.config.store.dao.DomainDao aDao)
Set the value of the DomainDao object.
|
void |
updateDomain(org.nhindirect.config.store.Domain domain)
Update a Domain.
|
public void init()
public void addDomain(org.nhindirect.config.store.Domain domain)
throws ConfigurationServiceException
DomainServiceaddDomain in interface DomainServicedomain - The Domain to add.ConfigurationServiceExceptionpublic void updateDomain(org.nhindirect.config.store.Domain domain)
throws ConfigurationServiceException
DomainServiceupdateDomain in interface DomainServicedomain - The Domain to update.ConfigurationServiceExceptionpublic int getDomainCount()
throws ConfigurationServiceException
DomainServicegetDomainCount in interface DomainServiceConfigurationServiceExceptionpublic Collection<org.nhindirect.config.store.Domain> getDomains(Collection<String> domainNames, org.nhindirect.config.store.EntityStatus status) throws ConfigurationServiceException
DomainServicegetDomains in interface DomainServicedomainNames - A collection of domain names.status - An EntityStatus object.ConfigurationServiceExceptionpublic void removeDomain(String domainName) throws ConfigurationServiceException
DomainServiceremoveDomain in interface DomainServicedomainName - The name of the Domain to remove.ConfigurationServiceExceptionpublic void removeDomainById(Long domainId) throws ConfigurationServiceException
DomainServiceremoveDomainById in interface DomainServicedomainId - The id of the Domain to remove.ConfigurationServiceExceptionpublic Collection<org.nhindirect.config.store.Domain> listDomains(String lastDomainName, int maxResults) throws ConfigurationServiceException
DomainServicelistDomains in interface DomainServicelastDomainName - The last domain name.maxResults - The maximum number of results.ConfigurationServiceExceptionpublic Collection<org.nhindirect.config.store.Domain> searchDomain(String domain, org.nhindirect.config.store.EntityStatus status)
DomainServicesearchDomain in interface DomainServicedomain - The Domain name.status - The Domain EntityStatus.public org.nhindirect.config.store.Domain getDomain(Long id)
DomainServicegetDomain in interface DomainServiceid - The ID of the Domain.@Autowired public void setDao(org.nhindirect.config.store.dao.DomainDao aDao)
aDao - The value of the DomainDao object.Copyright © 2015. All Rights Reserved.