@RestController @RequestMapping(value="domain") 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 |
|---|---|
reactor.core.publisher.Mono<Void> |
addDomain(org.nhindirect.config.model.Domain domain)
Adds a domain to the system.
|
reactor.core.publisher.Mono<org.nhindirect.config.model.Domain> |
getDomain(String domain)
Gets a domain by name.
|
reactor.core.publisher.Mono<Void> |
removedDomain(String domain)
Deletes a domain by name.
|
reactor.core.publisher.Flux<org.nhindirect.config.model.Domain> |
searchDomains(String domainName,
String entityStatus)
Gets a list of domains that match a query.
|
void |
setAddressRepository(org.nhindirect.config.repository.AddressRepository addRepo)
Sets the address repository.
|
void |
setAddressResource(TrustBundleResource bundleResource)
Sets the trust bundle resource.
|
void |
setDomainReltnRepository(org.nhindirect.config.repository.CertPolicyGroupDomainReltnRepository domainReltnRepo)
Sets the cert policy/domain relation repository.
|
void |
setDomainRepository(org.nhindirect.config.repository.DomainRepository domainRepo)
Sets the domain repository.
|
reactor.core.publisher.Mono<Void> |
updateDomain(org.nhindirect.config.model.Domain domain)
Updates a domain's attributes.
|
@Autowired public void setAddressRepository(org.nhindirect.config.repository.AddressRepository addRepo)
addRepo - Address repository@Autowired public void setDomainRepository(org.nhindirect.config.repository.DomainRepository domainRepo)
domainRepo - The domain repository.@Autowired public void setAddressResource(TrustBundleResource bundleResource)
bundleResource - The trust bundle resource.@Autowired public void setDomainReltnRepository(org.nhindirect.config.repository.CertPolicyGroupDomainReltnRepository domainReltnRepo)
domainReltnRepo - The cert policy/domain relation repository.@GetMapping(value="{domain}",
produces="application/json")
public reactor.core.publisher.Mono<org.nhindirect.config.model.Domain> getDomain(@PathVariable(value="domain")
String domain)
domain - The name of the domain to retrieve.@GetMapping(produces="application/json")
public reactor.core.publisher.Flux<org.nhindirect.config.model.Domain> searchDomains(@RequestParam(name="domainName",defaultValue="")
String domainName,
@RequestParam(name="entityStatus",defaultValue="")
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.@PutMapping(consumes="application/json") @ResponseStatus(value=CREATED) public reactor.core.publisher.Mono<Void> addDomain(@RequestBody org.nhindirect.config.model.Domain domain)
uriInfo - Injected URI context used for building the location URI.domain - The domain to add to the system.@PostMapping(consumes="application/json") @ResponseStatus(value=NO_CONTENT) public reactor.core.publisher.Mono<Void> updateDomain(@RequestBody org.nhindirect.config.model.Domain domain)
domain - The name of the domain to update.@DeleteMapping(value="{domain}")
public reactor.core.publisher.Mono<Void> removedDomain(@PathVariable(value="domain")
String domain)
domain - The name of the domain to delete.Copyright © 2021. All rights reserved.