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
    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
    org.springframework.web.reactive.function.client.WebClient.ResponseSpec
    Retrieves the graph of a specific job
    Retrieves the graph of a specific job
    org.springframework.web.reactive.function.client.WebClient.ResponseSpec
    getId(String orderId)
    Retrieves information about a specific order based on its ID
    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
    Retrieves the state of a specific order
    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
    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
    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

    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 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 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 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 id
      recordFrom - the first result to return
      recordTo - the last return to return
      states - 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

      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 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 id
      state - the desired order state
      facility - 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 id
      state - 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 state
      state - 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