Klasse ProcessorClassControllerImpl

java.lang.Object
de.dlr.proseo.procmgr.rest.ProcessorClassControllerImpl
Alle implementierten Schnittstellen:
ProcessorclassController

@Component public class ProcessorClassControllerImpl extends Object implements ProcessorclassController
Spring MVC controller for the prosEO Processor Manager; implements the services required to manage processor classes.
Autor:
Dr. Thomas Bassler
  • Konstruktordetails

    • ProcessorClassControllerImpl

      public ProcessorClassControllerImpl()
  • Methodendetails

    • getProcessorClasses

      public org.springframework.http.ResponseEntity<List<RestProcessorClass>> getProcessorClasses(String mission, String processorName, Integer recordFrom, Integer recordTo)
      Get processor classes by mission and name
      Angegeben von:
      getProcessorClasses in Schnittstelle ProcessorclassController
      Parameter:
      mission - the mission code (optional)
      processorName - the processor name (optional)
      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 processor classes 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 processor classes matching the search criteria were found HTTP status "TOO MANY REQUESTS" if the result list exceeds a configured maximum
    • createProcessorClass

      public org.springframework.http.ResponseEntity<RestProcessorClass> createProcessorClass(@Valid @Valid RestProcessorClass processorClass)
      Create a new processor class
      Angegeben von:
      createProcessorClass in Schnittstelle ProcessorclassController
      Parameter:
      processorClass - a Json representation of the new processor class
      Gibt zurück:
      HTTP status "CREATED" and a response containing a Json object corresponding to the processor class 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
    • getProcessorClassById

      public org.springframework.http.ResponseEntity<RestProcessorClass> getProcessorClassById(Long id)
      Get a processor class by ID
      Angegeben von:
      getProcessorClassById in Schnittstelle ProcessorclassController
      Parameter:
      id - the processor class ID
      Gibt zurück:
      HTTP status "OK" and a Json object corresponding to the processor class found or HTTP status "BAD_REQUEST" and an error message, if no processor class 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 processor class with the given ID exists
    • modifyProcessorClass

      public org.springframework.http.ResponseEntity<RestProcessorClass> modifyProcessorClass(Long id, @Valid @Valid RestProcessorClass processorClass)
      Update a processor class by ID
      Angegeben von:
      modifyProcessorClass in Schnittstelle ProcessorclassController
      Parameter:
      id - the ID of the processor class to update
      processorClass - 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 processor class after modification (with ID and version for all contained objects) or HTTP status "NOT_MODIFIED" and the unchanged product, if no attributes were actually changed, or HTTP status "NOT_FOUND" and an error message, if no processor class 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 processor class has been modified since retrieval by the client
    • deleteProcessorClassById

      public org.springframework.http.ResponseEntity<?> deleteProcessorClassById(Long id)
      Delete a processor class by ID
      Angegeben von:
      deleteProcessorClassById in Schnittstelle ProcessorclassController
      Parameter:
      id - the ID of the processor class 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 processor class did not exist, or HTTP status "NOT_MODIFIED", if the deletion was unsuccessful, or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "BAD_REQUEST", if the processor class ID was not given, or if dependent objects exist
    • countProcessorClasses

      public org.springframework.http.ResponseEntity<String> countProcessorClasses(String missionCode, String processorName)
      Count the processor classes matching the specified mission and processor name.
      Angegeben von:
      countProcessorClasses in Schnittstelle ProcessorclassController
      Parameter:
      missionCode - the mission code
      processorName - the processor name
      Gibt zurück:
      the number of matching configurations as a String (may be zero) or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted