Package de.dlr.proseo.ui.gui.service
Class ProcessorService
java.lang.Object
de.dlr.proseo.ui.gui.service.ProcessorService
A bridge between the GUI frontend and the backend services related to processors. It provides methods to interact with
processor-related functionalities by making HTTP requests to the appropriate endpoints.
- Author:
- David Mazo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.reactive.function.client.WebClient.ResponseSpecDelete a processor class by idorg.springframework.web.reactive.function.client.WebClient.ResponseSpecGets a processor class by its nameorg.springframework.web.reactive.function.client.WebClient.ResponseSpecGet a processor by processor class name and processor versionorg.springframework.web.reactive.function.client.WebClient.ResponseSpecGet a processor class by its database IDorg.springframework.web.reactive.function.client.WebClient.ResponseSpecUpdate a processor class by idorg.springframework.web.reactive.function.client.WebClient.ResponseSpecCreate a processor class
-
Constructor Details
-
ProcessorService
public ProcessorService()
-
-
Method Details
-
get
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec get(Long pId, String processorName, String productClass, Long from, Long to) Gets a processor class by its name- Parameters:
processorName- the processor class name to search for- Returns:
- a ResponseSpec; providing access to the response status and headers, and as well as methods to consume the response body
-
getById
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec getById(String processorId) Get a processor class by its database ID- Parameters:
processorId- the database ID to search for- Returns:
- a ResponseSpec; providing access to the response status and headers, and as well as methods to consume the response body
-
post
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec post(String missionCode, String processorName, String[] productClasses) Create a processor class- Parameters:
missionCode- the code of the mission to which the new processor class belongsprocessorName- user-defined processor class name (Processor_Name from Generic IPF Interface Specifications, sec. 4.1.3), unique within a missionproductClasses- the product classes a processor of this class can generate- Returns:
- a ResponseSpec; providing access to the response status and headers, and as well as methods to consume the response body TODO verify
-
patch
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec patch(String processorClassId, String missionCode, String processorName, String[] productClasses) Update a processor class by id- Parameters:
processorClassId- database ID of processor class to updatemissionCode- the code of the mission to which the new processor class belongsprocessorName- user-defined processor class name (Processor_Name from Generic IPF Interface Specifications, sec. 4.1.3), unique within a missionproductClasses- the product classes a processor of this class can generate- Returns:
- the updated processor class TODO verify
-
delete
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec delete(String processorClassId) Delete a processor class by id- Parameters:
processorClassId- of Processor Class to be removed- Returns:
- a ResponseSpec that the caller can subscribe to, e.g. for extracting the response body or handling errors TODO verify
-
get
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec get(String missionCode, String processorName, String processorVersion) Get a processor by processor class name and processor version- Parameters:
missionCode- the mission of the processorprocessorName- the processor class nameprocessorVersion- the processor version- Returns:
- a ResponseSpec that the caller can subscribe to, e.g. for extracting the response body or handling errors TODO verify
-