Klasse OrderService

java.lang.Object
de.dlr.proseo.ui.gui.service.OrderService

@Service public class OrderService extends Object
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
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    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
    reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse>
    Retrieves the graph of a specific job
    Retrieves the graph of a specific job
    reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse>
    getId(String orderId)
    Retrieves information about a specific order based on its ID
    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
    Retrieves the state of a specific order
    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
    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
    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

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 identifier
      states - the order state
      products - the product
      startTimeFrom - the earliest permitted startTime
      startTimeTo - the latest permitted startTime
      recordFrom - the first result to return
      recordTo - the last result to return
      sortCol - the column on which to base the sorting
      up - 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 id
      recordFrom - the first result to return
      recordTo - the last return to return
      states - 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

      public HashMap<String,Object> getGraphOfJob(String jobId, GUIAuthenticationToken auth)
      Retrieves the graph of a specific job
      Parameter:
      jobId - the job id
      auth - 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 unsuccessful
      RuntimeException
    • 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 id
      state - the desired order state
      facility - 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 id
      state - 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 state
      state - 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