@Controller @Configurable public class TransactionalApiImpl extends Object implements TransactionalApi, org.n52.janmayen.lifecycle.Constructable
TransactionalApi.| Constructor and Description |
|---|
TransactionalApiImpl() |
| 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 |
init() |
void |
setDecoderRepository(org.n52.svalbard.decode.DecoderRepository decoderRepository)
Set the
DecoderRepository. |
void |
setRegistration(TransactionalAlgorithmRegistry registration)
Set the
TransactionalAlgorithmRegistry. |
void |
setServiceURL(URI serviceURL)
Set the service URL.
|
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.
|
@Autowired public void setRegistration(TransactionalAlgorithmRegistry registration)
TransactionalAlgorithmRegistry.registration - The TransactionalAlgorithmRegistry.@Autowired public void setDecoderRepository(org.n52.svalbard.decode.DecoderRepository decoderRepository)
DecoderRepository.decoderRepository - The DecoderRepository.@Setting(value="service.serviceURL") public void setServiceURL(URI serviceURL)
serviceURL - The service URL.public void undeployProcess(String id) throws ProcessNotFoundException, UndeletableProcessException
TransactionalApiundeployProcess in interface TransactionalApiid - The identifier of the process.ProcessNotFoundException - If the process could not be found.UndeletableProcessException - If the process is not deletable.public org.springframework.http.ResponseEntity<?> deployProcess(com.fasterxml.jackson.databind.JsonNode request)
throws DuplicateProcessException,
UnsupportedProcessException
TransactionalApideployProcess in interface TransactionalApirequest - 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.public void updateProcess(String id, com.fasterxml.jackson.databind.JsonNode request) throws ProcessNotFoundException, UnsupportedProcessException, UndeletableProcessException
TransactionalApiupdateProcess in interface TransactionalApiid - 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.public void init()
init in interface org.n52.janmayen.lifecycle.ConstructableCopyright © 2016–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.