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
  • 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 Schnittstelle ConfiguredprocessorController
      Parameter:
      mission - the mission code
      identifier - the identifier for the configured processor
      processorName - the processor name
      processorVersion - the processor version
      configurationVersion - the configuration version
      uuid - the UUID of the configured processor
      recordFrom - first record of filtered and ordered result to return
      recordTo - 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 Schnittstelle ConfiguredprocessorController
      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 Schnittstelle ConfiguredprocessorController
      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 Schnittstelle ConfiguredprocessorController
      Parameter:
      id - the ID of the configured processor to update
      configuredProcessor - 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

      public org.springframework.http.ResponseEntity<?> deleteConfiguredProcessorById(Long id)
      Delete a configured processor by ID
      Angegeben von:
      deleteConfiguredProcessorById in Schnittstelle ConfiguredprocessorController
      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 Schnittstelle ConfiguredprocessorController
      Parameter:
      missionCode - the mission code
      processorName - the processor name
      processorVersion - the processor version
      configurationVersion - 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