@Component public class DomainResource extends ProtectedResource
Although not required, this class is instantiated using the Jersey SpringServlet and dependencies are defined in the Sprint context XML file.
| Constructor and Description |
|---|
DomainResource()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addDomain(javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.Domain domain)
Adds a domain to the system.
|
javax.ws.rs.core.Response |
getDomain(String domain)
Gets a domain by name.
|
javax.ws.rs.core.Response |
removedDomain(String domain)
Deletes a domain by name.
|
javax.ws.rs.core.Response |
searchDomains(String domainName,
String entityStatus)
Gets a list of domains that match a query.
|
void |
setAddressDao(org.nhindirect.config.store.dao.AddressDao addressDao)
Sets the address Dao.
|
void |
setDomainDao(org.nhindirect.config.store.dao.DomainDao domainDao)
Sets the domain Dao.
|
javax.ws.rs.core.Response |
updateDomain(org.nhindirect.config.model.Domain domain)
Updates a domain's attributes.
|
@Autowired public void setAddressDao(org.nhindirect.config.store.dao.AddressDao addressDao)
dao - Address Dao@Autowired public void setDomainDao(org.nhindirect.config.store.dao.DomainDao domainDao)
domainDao - The domain Dao.public javax.ws.rs.core.Response getDomain(String domain)
domain - The name of the domain to retrieve.public javax.ws.rs.core.Response searchDomains(String domainName, String entityStatus)
domainName - The name of the domain to to get. Defaults to an empty string which means get all domains.entityStatus - The entity status that the returned domain must match. Default to empty string which means to ignore the status filter.public javax.ws.rs.core.Response addDomain(@Context
javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.Domain domain)
uriInfo - Injected URI context used for building the location URI.domain - The domain to add to the system.public javax.ws.rs.core.Response updateDomain(org.nhindirect.config.model.Domain domain)
domain - The name of the domain to update.public javax.ws.rs.core.Response removedDomain(String domain)
domain - The name of the domain to delete.Copyright © 2015. All Rights Reserved.