@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 |
|---|---|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
addDomain(org.nhindirect.config.model.Domain domain)
Adds a domain to the system.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<org.nhindirect.config.model.Domain>> |
getDomain(java.lang.String domain)
Gets a domain by name.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> |
removedDomain(java.lang.String domain)
Deletes a domain by name.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.Domain>> |
searchDomains(java.lang.String domainName,
java.lang.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 |
setDomainRepository(org.nhindirect.config.repository.DomainRepository domainRepo)
Sets the domain repository.
|
org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.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.@GetMapping(value="{domain}",
produces="application/json")
@Transactional(readOnly=true)
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<org.nhindirect.config.model.Domain>> getDomain(@PathVariable(value="domain")
java.lang.String domain)
domain - The name of the domain to retrieve.@GetMapping(produces="application/json")
@Transactional(readOnly=true)
public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<org.nhindirect.config.model.Domain>> searchDomains(@RequestParam(name="domainName",defaultValue="")
java.lang.String domainName,
@RequestParam(name="entityStatus",defaultValue="")
java.lang.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")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.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")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> updateDomain(@RequestBody
org.nhindirect.config.model.Domain domain)
domain - The name of the domain to update.@DeleteMapping(value="{domain}")
public org.springframework.http.ResponseEntity<reactor.core.publisher.Mono<java.lang.Void>> removedDomain(@PathVariable(value="domain")
java.lang.String domain)
domain - The name of the domain to delete.Copyright © 2019. All Rights Reserved.