public interface TransactionalApi
ProcessesApi for transactional operations.| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<?> |
deployProcess(com.fasterxml.jackson.databind.JsonNode request)
Adds a new process to this service.
|
void |
undeployProcess(String id)
Deletes the process with the specified id.
|
void |
updateProcess(String id,
com.fasterxml.jackson.databind.JsonNode request)
Updates the process with the specified id.
|
@ResponseBody
@ResponseStatus(value=NO_CONTENT)
@DeleteMapping(path="/rest/processes/{id:.+}")
void undeployProcess(@PathVariable(value="id")
String id)
throws ProcessNotFoundException,
UndeletableProcessException
id - The identifier of the process.ProcessNotFoundException - If the process could not be found.UndeletableProcessException - If the process is not deletable.@ResponseStatus(value=CREATED)
@PostMapping(path="/rest/processes",
consumes="application/json")
org.springframework.http.ResponseEntity<?> deployProcess(@RequestBody
com.fasterxml.jackson.databind.JsonNode request)
throws DuplicateProcessException,
UnsupportedProcessException
request - The description of the new process, a ApplicationPackage.Location of the new process.DuplicateProcessException - If a process with the same identifier already exists.UnsupportedProcessException - If the process is not supported.@ResponseStatus(value=NO_CONTENT)
@PutMapping(path="/rest/processes/{id:.+}",
consumes="application/json")
void updateProcess(@PathVariable(value="id")
String id,
@RequestBody
com.fasterxml.jackson.databind.JsonNode request)
throws ProcessNotFoundException,
UnsupportedProcessException,
UndeletableProcessException
id - The identifier of the process.request - The description of the new process, a ApplicationPackageProcessNotFoundException - If the process could not be found.UnsupportedProcessException - If the process is not supported.UndeletableProcessException - If the process cannot be updated.Copyright © 2016–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.