|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.resources.ProtectedResource
org.nhindirect.config.resources.DomainResource
@Component public class DomainResource
JAX-RS resource for managing domain resources in the configuration service.
Although not required, this class is instantiated using the Jersey SpringServlet and dependencies are defined in the Sprint context XML file.
| Constructor Summary | |
|---|---|
DomainResource()
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DomainResource()
| Method Detail |
|---|
@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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||