|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.service.impl.DNSServiceImpl
public class DNSServiceImpl
Web service implementation of the DNSService.
| Constructor Summary | |
|---|---|
DNSServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addDNS(Collection<org.nhindirect.config.store.DNSRecord> records)
Adds multiple new DNS records to the store. |
org.nhindirect.config.store.dao.DNSDao |
getDao()
Return the value of the DNSDao object. |
Collection<org.nhindirect.config.store.DNSRecord> |
getDNSByName(String name)
Gets DNS records by record name. |
Collection<org.nhindirect.config.store.DNSRecord> |
getDNSByNameAndType(String name,
int type)
Gets DNS records by record name and a specific record type. |
org.nhindirect.config.store.DNSRecord |
getDNSByRecordId(long recordId)
Gets a single DNS record for an internal record id. |
Collection<org.nhindirect.config.store.DNSRecord> |
getDNSByRecordIds(long[] recordIds)
Gets DNS records by the internal record ids. |
Collection<org.nhindirect.config.store.DNSRecord> |
getDNSByType(int type)
Gets all DNS records or a given type. |
int |
getDNSCount()
Gets the number of records in the DNS store. |
void |
init()
Initialization method. |
void |
removeDNS(Collection<org.nhindirect.config.store.DNSRecord> records)
Removes DNS records matching the DNS records' name and type. |
void |
removeDNSByRecordId(long recordId)
Removes a single DNS record by an existing internal record id. |
void |
removeDNSByRecordIds(long[] recordIds)
Removes DNS records by existing internal record ids. |
void |
setDao(org.nhindirect.config.store.dao.DNSDao dao)
Set the value of the DNSDao object. |
void |
updateDNS(long recordId,
org.nhindirect.config.store.DNSRecord record)
Update a DNS record for a specific internal id. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DNSServiceImpl()
| Method Detail |
|---|
public void init()
public void addDNS(Collection<org.nhindirect.config.store.DNSRecord> records)
throws ConfigurationServiceException
addDNS in interface DNSServicerecords - The records to add the store. If a record already exists, then an exception is thrown.
ConfigurationServiceException
public Collection<org.nhindirect.config.store.DNSRecord> getDNSByName(String name)
throws ConfigurationServiceException
getDNSByName in interface DNSServicename - The record name.
ConfigurationServiceException
public Collection<org.nhindirect.config.store.DNSRecord> getDNSByNameAndType(String name,
int type)
throws ConfigurationServiceException
getDNSByNameAndType in interface DNSServicename - The record name.type - The record type to search for.
ConfigurationServiceException
public org.nhindirect.config.store.DNSRecord getDNSByRecordId(long recordId)
throws ConfigurationServiceException
getDNSByRecordId in interface DNSServicerecordId - The internal record id to search for.
ConfigurationServiceException
public Collection<org.nhindirect.config.store.DNSRecord> getDNSByRecordIds(long[] recordIds)
throws ConfigurationServiceException
getDNSByRecordIds in interface DNSServicerecordIds - Array of record ids to search for.
ConfigurationServiceException
public Collection<org.nhindirect.config.store.DNSRecord> getDNSByType(int type)
throws ConfigurationServiceException
getDNSByType in interface DNSServicetype - The record type to search for.
ConfigurationServiceException
public int getDNSCount()
throws ConfigurationServiceException
getDNSCount in interface DNSServiceConfigurationServiceException
public void removeDNS(Collection<org.nhindirect.config.store.DNSRecord> records)
throws ConfigurationServiceException
removeDNS in interface DNSServicerecords - Records to delete. Matching is done by name and type.
ConfigurationServiceException
public void removeDNSByRecordId(long recordId)
throws ConfigurationServiceException
removeDNSByRecordId in interface DNSServicerecordId - The internal record id to delete.
ConfigurationServiceException
public void removeDNSByRecordIds(long[] recordIds)
throws ConfigurationServiceException
removeDNSByRecordIds in interface DNSServicerecordIds - The internal record ids to delete.
ConfigurationServiceException
public void updateDNS(long recordId,
org.nhindirect.config.store.DNSRecord record)
throws ConfigurationServiceException
updateDNS in interface DNSServicerecordId - The internal record id to update.record - Data to update the record with.
ConfigurationServiceException@Autowired public void setDao(org.nhindirect.config.store.dao.DNSDao dao)
dao - the value of the DNSDao object.public org.nhindirect.config.store.dao.DNSDao getDao()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||