Klasse OrderjobControllerImpl

java.lang.Object
de.dlr.proseo.ordermgr.rest.OrderjobControllerImpl
Alle implementierten Schnittstellen:
OrderjobController

@Component public class OrderjobControllerImpl extends Object implements OrderjobController
Controller for the prosEO Order Manager, implements the services required to manage jobs. Provides methods for retrieving and counting jobs, as well as finding the index of a job within an ordered list. The class also includes utility methods for creating JPA queries.
Autor:
Ernst Melchinger
  • Konstruktordetails

    • OrderjobControllerImpl

      public OrderjobControllerImpl()
  • Methodendetails

    • getJobs

      @Transactional(isolation=REPEATABLE_READ, readOnly=true) public org.springframework.http.ResponseEntity<List<RestJob>> getJobs(Long orderId, Integer recordFrom, Integer recordTo, Boolean logs, String[] states, String[] orderBy)
      Retrieves production planner jobs, optionally filtered by job state and/or order ID. At the moment the states parameter accepts COMPLETED or NON-COMPLETED. It is prepared to accept a list of job states for selection.
      Angegeben von:
      getJobs in Schnittstelle OrderjobController
      Parameter:
      orderId - The order ID to filter by.
      recordFrom - The first record of the filtered and ordered result to return.
      recordTo - The last record of the filtered and ordered result to return.
      logs - Whether or not logs are included in the REST job step.
      states - The grouped job states (COMPLETED or NON-COMPLETED) to filter by.
      orderBy - An array of strings containing a column name and an optional sort direction (ASC/DESC), separated by whitespace.
      Gibt zurück:
      A list of JSON objects describing jobs.
    • countJobs

      @Transactional(isolation=REPEATABLE_READ, readOnly=true) public org.springframework.http.ResponseEntity<String> countJobs(String[] states, Long orderId)
      Retrieves the number of production planner jobs based on the specified states and order ID. At the moment the states parameter accepts COMPLETED or NON-COMPLETED. It is prepared to accept a list of job states for selection.
      Angegeben von:
      countJobs in Schnittstelle OrderjobController
      Parameter:
      states - The grouped job states (COMPLETED or NON-COMPLETED) to filter by.
      orderId - The order ID of the jobs.
      Gibt zurück:
      The number of jobs.
    • indexOfJob

      @Transactional(isolation=REPEATABLE_READ, readOnly=true) public org.springframework.http.ResponseEntity<String> indexOfJob(Long orderId, Long jobId, Long jobStepId, String[] states, String[] orderBy)
      Retrieves the index of a job in an ordered list of all jobs of an order. At the moment the states parameter accepts COMPLETED or NON-COMPLETED. It is prepared to accept a list of job states for selection.
      Angegeben von:
      indexOfJob in Schnittstelle OrderjobController
      Parameter:
      orderId - The persistent id of the processing order.
      jobId - The persistent id of the job.
      jobStepId - The persistent id of the job step.
      states - The grouped job states (COMPLETED or NON-COMPLETED) to filter by.
      orderBy - An array of strings containing a column name and an optional sort direction (ASC/DESC), separated by whitespace.
      Gibt zurück:
      The index of the job in the ordered list (0 based).