Package de.dlr.proseo.procmgr.rest
Klasse ConfiguredProcessorControllerImpl
java.lang.Object
de.dlr.proseo.procmgr.rest.ConfiguredProcessorControllerImpl
- Alle implementierten Schnittstellen:
ConfiguredprocessorController
@Component
public class ConfiguredProcessorControllerImpl
extends Object
implements ConfiguredprocessorController
Spring MVC controller for the prosEO Processor Manager; implements the services required to manage configured processor versions.
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.springframework.http.ResponseEntity
<String> countConfiguredProcessors
(String missionCode, String processorName, String processorVersion, String configurationVersion) Count the configuredProcessors matching the specified mission, processor name, and configuredProcessor version.org.springframework.http.ResponseEntity
<RestConfiguredProcessor> createConfiguredProcessor
(@Valid RestConfiguredProcessor configuredProcessor) Create a new configured processororg.springframework.http.ResponseEntity
<?> Delete a configured processor by IDorg.springframework.http.ResponseEntity
<RestConfiguredProcessor> Get a configured processor by IDorg.springframework.http.ResponseEntity
<List<RestConfiguredProcessor>> getConfiguredProcessors
(String mission, String identifier, String processorName, String processorVersion, String configurationVersion, String uuid, Integer recordFrom, Integer recordTo) Get configured processors, filtered by mission, identifier, processor name, processor version and/or configuration versionorg.springframework.http.ResponseEntity
<RestConfiguredProcessor> modifyConfiguredProcessor
(Long id, @Valid RestConfiguredProcessor configuredProcessor) Update a configured processor by ID
-
Konstruktordetails
-
ConfiguredProcessorControllerImpl
public ConfiguredProcessorControllerImpl()
-
-
Methodendetails
-
getConfiguredProcessors
public org.springframework.http.ResponseEntity<List<RestConfiguredProcessor>> getConfiguredProcessors(String mission, String identifier, String processorName, String processorVersion, String configurationVersion, String uuid, Integer recordFrom, Integer recordTo) Get configured processors, filtered by mission, identifier, processor name, processor version and/or configuration version- Angegeben von:
getConfiguredProcessors
in SchnittstelleConfiguredprocessorController
- Parameter:
mission
- the mission codeidentifier
- the identifier for the configured processorprocessorName
- the processor nameprocessorVersion
- the processor versionconfigurationVersion
- the configuration versionuuid
- the UUID of the configured processorrecordFrom
- first record of filtered and ordered result to returnrecordTo
- last record of filtered and ordered result to return- Gibt zurück:
- HTTP status "OK" and a list of JSON objects representing configured processors satisfying the search criteria or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "NOT_FOUND" and an error message, if no configurations matching the search criteria were found, or HTTP status "TOO MANY REQUESTS" if the result list exceeds a configured maximum
-
createConfiguredProcessor
public org.springframework.http.ResponseEntity<RestConfiguredProcessor> createConfiguredProcessor(@Valid @Valid RestConfiguredProcessor configuredProcessor) Create a new configured processor- Angegeben von:
createConfiguredProcessor
in SchnittstelleConfiguredprocessorController
- Parameter:
configuredProcessor
- a Json representation of the new configured processor- Gibt zurück:
- HTTP status "CREATED" and a response containing a Json object corresponding to the configured processor after persistence (with ID and version for all contained objects) or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "BAD_REQUEST", if any of the input data was invalid
-
getConfiguredProcessorById
public org.springframework.http.ResponseEntity<RestConfiguredProcessor> getConfiguredProcessorById(Long id) Get a configured processor by ID- Angegeben von:
getConfiguredProcessorById
in SchnittstelleConfiguredprocessorController
- Parameter:
id
- the configured processor ID- Gibt zurück:
- HTTP status "OK" and a Json object corresponding to the configured processor found or HTTP status "BAD_REQUEST" and an error message, if no configured processor ID was given, or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "NOT_FOUND" and an error message, if no configured processor with the given ID exists
-
modifyConfiguredProcessor
public org.springframework.http.ResponseEntity<RestConfiguredProcessor> modifyConfiguredProcessor(Long id, @Valid @Valid RestConfiguredProcessor configuredProcessor) Update a configured processor by ID- Angegeben von:
modifyConfiguredProcessor
in SchnittstelleConfiguredprocessorController
- Parameter:
id
- the ID of the configured processor to updateconfiguredProcessor
- a Json object containing the modified (and unmodified) attributes- Gibt zurück:
- HTTP status "OK" and a response containing a Json object corresponding to the configured processor after modification (with ID and version for all contained objects) or HTTP status "NOT_MODIFIED" and the unchanged configured processor, if no attributes were actually changed, or HTTP status "NOT_FOUND" and an error message, if no configured processor with the given ID exists, or HTTP status "BAD_REQUEST" and an error message, if any of the input data was invalid, or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "CONFLICT"and an error message, if the configured processor has been modified since retrieval by the client
-
deleteConfiguredProcessorById
Delete a configured processor by ID- Angegeben von:
deleteConfiguredProcessorById
in SchnittstelleConfiguredprocessorController
- Parameter:
id
- the ID of the configured processor to delete- Gibt zurück:
- a response entity with HTTP status "NO_CONTENT", if the deletion was successful, or HTTP status "NOT_FOUND", if the configured processor did not exist, or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "NOT_MODIFIED", if the deletion was unsuccessful
-
countConfiguredProcessors
public org.springframework.http.ResponseEntity<String> countConfiguredProcessors(String missionCode, String processorName, String processorVersion, String configurationVersion) Count the configuredProcessors matching the specified mission, processor name, and configuredProcessor version.- Angegeben von:
countConfiguredProcessors
in SchnittstelleConfiguredprocessorController
- Parameter:
missionCode
- the mission codeprocessorName
- the processor nameprocessorVersion
- the processor versionconfigurationVersion
- the configuration version- Gibt zurück:
- the number of matching configuredProcessors as a String (may be zero) or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted
-