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 TypMethodeBeschreibungreactor.core.publisher.Mono
<org.springframework.web.reactive.function.client.ClientResponse> 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 parametersreactor.core.publisher.Mono
<org.springframework.web.reactive.function.client.ClientResponse> getGraphOfJob
(String orderId) Retrieves the graph of a specific jobgetGraphOfJob
(String jobId, GUIAuthenticationToken auth) Retrieves the graph of a specific jobreactor.core.publisher.Mono
<org.springframework.web.reactive.function.client.ClientResponse> Retrieves information about a specific order based on its IDreactor.core.publisher.Mono
<org.springframework.web.reactive.function.client.ClientResponse> getJobsOfOrder
(String orderId, Long recordFrom, Long recordTo, String states) Retrieves the jobs associated with a specific ordergetOrderState
(String orderId) Retrieves the state of a specific orderreactor.core.publisher.Mono
<org.springframework.web.reactive.function.client.ClientResponse> setJobState
(String jobId, String state) Changes the state of a job based on its ID and the desired statereactor.core.publisher.Mono
<org.springframework.web.reactive.function.client.ClientResponse> setJobStepState
(String jobStepId, String state) Changes the state of a job step based on its ID and the desired statereactor.core.publisher.Mono
<org.springframework.web.reactive.function.client.ClientResponse> Changes the state of an order based on its ID and the desired state
-
Konstruktordetails
-
OrderService
public OrderService()
-
-
Methodendetails
-
get
public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> 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 Mono<ClientResponse> providing access to the response status and headers, and as well as methods to consume the response body
-
getId
public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> getId(String orderId) Retrieves information about a specific order based on its ID- Parameter:
orderId
- the order id- Gibt zurück:
- a Mono<ClientResponse> providing access to the response status and headers, as well as methods to consume the response body
-
getJobsOfOrder
public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> 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 Mono<ClientResponse> providing access to the response status and headers, and also methods to consume the response body
-
getGraphOfJob
public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> getGraphOfJob(String orderId) Retrieves the graph of a specific job- Parameter:
orderId
- the job id- Gibt zurück:
- a Mono<ClientResponse> 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 reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> 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:
- a Mono<ClientResponse> providing access to the response status and headers, as well as methods to consume the response body
-
setJobState
public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> 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 Mono<ClientResponse> providing access to the response status and headers, as well as methods to consume the response body
-
setJobStepState
public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> 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 Mono<ClientResponse> providing access to the response status and headers, as well as methods to consume the response body
-