Package de.dlr.proseo.ui.gui.service
Klasse OrderService
java.lang.Object
de.dlr.proseo.ui.gui.service.OrderService
A bridge between the GUI frontend and the order management backend, providing methods to retrieve, manipulate, and update
order-related data and entities
- Autor:
- Ernst Melchinger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.springframework.web.reactive.function.client.WebClient.ResponseSpecget(String identifier, String states, String products, String startTimeFrom, String startTimeTo, Long recordFrom, Long recordTo, String sortCol, Boolean up) Retrieves a list of orders based on various search parametersorg.springframework.web.reactive.function.client.WebClient.ResponseSpecgetGraphOfJob(String orderId) Retrieves the graph of a specific jobgetGraphOfJob(String jobId, GUIAuthenticationToken auth) Retrieves the graph of a specific joborg.springframework.web.reactive.function.client.WebClient.ResponseSpecRetrieves information about a specific order based on its IDorg.springframework.web.reactive.function.client.WebClient.ResponseSpecgetJobsOfOrder(String orderId, Long recordFrom, Long recordTo, String states) Retrieves the jobs associated with a specific ordergetOrderState(String orderId) Retrieves the state of a specific orderorg.springframework.web.reactive.function.client.WebClient.ResponseSpecsetJobState(String jobId, String state) Changes the state of a job based on its ID and the desired stateorg.springframework.web.reactive.function.client.WebClient.ResponseSpecsetJobStepState(String jobStepId, String state) Changes the state of a job step based on its ID and the desired stateorg.springframework.web.reactive.function.client.WebClient.ResponseSpecChanges the state of an order based on its ID and the desired state
-
Konstruktordetails
-
OrderService
public OrderService()
-
-
Methodendetails
-
get
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec get(String identifier, String states, String products, String startTimeFrom, String startTimeTo, Long recordFrom, Long recordTo, String sortCol, Boolean up) Retrieves a list of orders based on various search parameters- Parameter:
identifier- the order identifierstates- the order stateproducts- the productstartTimeFrom- the earliest permitted startTimestartTimeTo- the latest permitted startTimerecordFrom- the first result to returnrecordTo- the last result to returnsortCol- the column on which to base the sortingup- true if the sorting should be ascending, false if it should be descending- Gibt zurück:
- a ResponseSpec; providing access to the response status and headers, and as well as methods to consume the response body
-
getId
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec getId(String orderId) Retrieves information about a specific order based on its ID- Parameter:
orderId- the order id- Gibt zurück:
- a ResponseSpec; providing access to the response status and headers, as well as methods to consume the response body
-
getJobsOfOrder
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec getJobsOfOrder(String orderId, Long recordFrom, Long recordTo, String states) Retrieves the jobs associated with a specific order- Parameter:
orderId- the order idrecordFrom- the first result to returnrecordTo- the last return to returnstates- the permitted job states- Gibt zurück:
- a ResponseSpec; providing access to the response status and headers, and also methods to consume the response body
-
getGraphOfJob
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec getGraphOfJob(String orderId) Retrieves the graph of a specific job- Parameter:
orderId- the job id- Gibt zurück:
- a ResponseSpec; providing access to the response status and headers, and also methods to consume the response body
-
getGraphOfJob
Retrieves the graph of a specific job- Parameter:
jobId- the job idauth- the GUI authentication token- Gibt zurück:
- the job graph
-
getOrderState
public String getOrderState(String orderId) throws org.springframework.web.client.RestClientResponseException, RuntimeException Retrieves the state of a specific order- Parameter:
orderId- the order id- Gibt zurück:
- the order state in string format
- Löst aus:
org.springframework.web.client.RestClientResponseException- if the call to the order manager was unsuccessfulRuntimeException
-
setState
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec setState(String orderId, String state, String facility) Changes the state of an order based on its ID and the desired state- Parameter:
orderId- the order idstate- the desired order statefacility- the processing facility- Gibt zurück:
- aResponseSpec; providing access to the response status and headers, as well as methods to consume the response body
-
setJobState
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec setJobState(String jobId, String state) Changes the state of a job based on its ID and the desired state- Parameter:
jobId- the job idstate- the desired state- Gibt zurück:
- a ResponseSpec; providing access to the response status and headers, as well as methods to consume the response body
-
setJobStepState
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec setJobStepState(String jobStepId, String state) Changes the state of a job step based on its ID and the desired state- Parameter:
jobStepId- the job step statestate- the state to set- Gibt zurück:
- a ResponseSpec; providing access to the response status and headers, as well as methods to consume the response body
-