Package de.dlr.proseo.planner.rest
Klasse OrderControllerImpl
java.lang.Object
de.dlr.proseo.planner.rest.OrderControllerImpl
- Alle implementierten Schnittstellen:
OrderController
Spring MVC controller for the prosEO planner; implements the services required to plan and handle processing orders.
- Autor:
- Ernst Melchinger
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibung(Package privat) ProductionPlannerSecurityConfig
The production planner security configuration -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.springframework.http.ResponseEntity
<RestOrder> approveOrder
(String orderId, org.springframework.http.HttpHeaders httpHeaders) Veraltet.org.springframework.http.ResponseEntity
<RestOrder> cancelOrder
(String orderId, org.springframework.http.HttpHeaders httpHeaders) Cancel processing order by ID.org.springframework.http.ResponseEntity
<RestOrder> closeOrder
(String orderId, org.springframework.http.HttpHeaders httpHeaders) Close processing order by ID.org.springframework.http.ResponseEntity
<RestOrder> deleteOrder
(String orderId, org.springframework.http.HttpHeaders httpHeaders) Delete processing order by ID.org.springframework.http.ResponseEntity
<RestOrder> Veraltet.getOrders
(org.springframework.http.HttpHeaders httpHeaders) Veraltet.org.springframework.http.ResponseEntity
<RestOrder> planOrder
(String releaseId, String facility, Boolean wait, org.springframework.http.HttpHeaders httpHeaders) Plan processing order of id on processing facilityorg.springframework.http.ResponseEntity
<RestOrder> releaseOrder
(String orderId, Boolean wait, org.springframework.http.HttpHeaders httpHeaders) Release processing order of id (at the moment the same functionality as resumeOrder)org.springframework.http.ResponseEntity
<RestOrder> resetOrder
(String orderId, org.springframework.http.HttpHeaders httpHeaders) Reset processing order by ID.org.springframework.http.ResponseEntity
<RestOrder> resumeOrder
(String orderId, Boolean wait, org.springframework.http.HttpHeaders httpHeaders) Resume processing order (currently an alias for releaseOrder).org.springframework.http.ResponseEntity
<RestOrder> retryOrder
(String orderId, org.springframework.http.HttpHeaders httpHeaders) Retry processing order by ID.org.springframework.http.ResponseEntity
<RestOrder> suspendOrder
(String orderId, Boolean force, org.springframework.http.HttpHeaders httpHeaders) Suspend processing order by ID.
-
Felddetails
-
securityConfig
The production planner security configuration
-
-
Konstruktordetails
-
OrderControllerImpl
public OrderControllerImpl()
-
-
Methodendetails
-
getOrders
@Deprecated public org.springframework.http.ResponseEntity<List<RestOrder>> getOrders(org.springframework.http.HttpHeaders httpHeaders) Veraltet.Get all processing orders (deprecated).- Angegeben von:
getOrders
in SchnittstelleOrderController
- Parameter:
httpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- ResponseEntity containing a list of RestOrder and HTTP status
-
getOrder
@Deprecated public org.springframework.http.ResponseEntity<RestOrder> getOrder(String orderId, org.springframework.http.HttpHeaders httpHeaders) Veraltet.Get processing order by ID (deprecated).- Angegeben von:
getOrder
in SchnittstelleOrderController
- Parameter:
orderId
- the ID of the processing orderhttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- ResponseEntity containing a RestOrder and HTTP status
-
approveOrder
@Deprecated public org.springframework.http.ResponseEntity<RestOrder> approveOrder(String orderId, org.springframework.http.HttpHeaders httpHeaders) Veraltet.Approve processing order by ID (deprecated).- Angegeben von:
approveOrder
in SchnittstelleOrderController
- Parameter:
orderId
- the ID of the processing orderhttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- ResponseEntity containing a RestOrder and HTTP status
-
resetOrder
public org.springframework.http.ResponseEntity<RestOrder> resetOrder(String orderId, org.springframework.http.HttpHeaders httpHeaders) Reset processing order by ID.- Angegeben von:
resetOrder
in SchnittstelleOrderController
- Parameter:
orderId
- the ID of the processing orderhttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- ResponseEntity containing a RestOrder and HTTP status
-
deleteOrder
public org.springframework.http.ResponseEntity<RestOrder> deleteOrder(String orderId, org.springframework.http.HttpHeaders httpHeaders) Delete processing order by ID.- Angegeben von:
deleteOrder
in SchnittstelleOrderController
- Parameter:
orderId
- the ID of the processing orderhttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- ResponseEntity containing a RestOrder and HTTP status
-
planOrder
public org.springframework.http.ResponseEntity<RestOrder> planOrder(String releaseId, String facility, Boolean wait, org.springframework.http.HttpHeaders httpHeaders) Plan processing order of id on processing facility- Angegeben von:
planOrder
in SchnittstelleOrderController
- Parameter:
releaseId
- the processing order database IDfacility
- the processing facility namewait
- indicates whether to wait for the order planning to completehttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- HTTP status "CREATED" and the updated REST order, if the planning succeeded, or HTTP status "NOT MODIFIED", an error message and the original REST order, if a warning was issued, or HTTP status "NOT FOUND" and an error message, if either the order or the facility cannot be found, or HTTP status "BAD REQUEST" and an error message, if the planning failed for some reason, or HTTP status "INTERNAL SERVER ERROR" and an error message, if any unforeseen error occurred
-
releaseOrder
public org.springframework.http.ResponseEntity<RestOrder> releaseOrder(String orderId, Boolean wait, org.springframework.http.HttpHeaders httpHeaders) Release processing order of id (at the moment the same functionality as resumeOrder)- Angegeben von:
releaseOrder
in SchnittstelleOrderController
- Parameter:
orderId
- the processing order database IDwait
- indicates whether to wait for the order releasing to completehttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- HTTP status "OK" and the updated REST order, if the releasing succeeded, or HTTP status "NOT FOUND" and an error message, if the order cannot be found, or HTTP status "BAD REQUEST" and an error message, if the releasing failed for some reason, or HTTP status "INTERNAL SERVER ERROR" and an error message, if any unforeseen error occurred
-
resumeOrder
public org.springframework.http.ResponseEntity<RestOrder> resumeOrder(String orderId, Boolean wait, org.springframework.http.HttpHeaders httpHeaders) Resume processing order (currently an alias for releaseOrder).- Angegeben von:
resumeOrder
in SchnittstelleOrderController
- Parameter:
orderId
- the processing order database IDwait
- indicates whether to wait for the order releasing to completehttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- ResponseEntity containing a RestOrder and HTTP status
-
cancelOrder
public org.springframework.http.ResponseEntity<RestOrder> cancelOrder(String orderId, org.springframework.http.HttpHeaders httpHeaders) Cancel processing order by ID.- Angegeben von:
cancelOrder
in SchnittstelleOrderController
- Parameter:
orderId
- the ID of the processing orderhttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- ResponseEntity containing a RestOrder and HTTP status
-
closeOrder
public org.springframework.http.ResponseEntity<RestOrder> closeOrder(String orderId, org.springframework.http.HttpHeaders httpHeaders) Close processing order by ID.- Angegeben von:
closeOrder
in SchnittstelleOrderController
- Parameter:
orderId
- the ID of the processing orderhttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- ResponseEntity containing a RestOrder and HTTP status
-
suspendOrder
public org.springframework.http.ResponseEntity<RestOrder> suspendOrder(String orderId, Boolean force, org.springframework.http.HttpHeaders httpHeaders) Suspend processing order by ID.- Angegeben von:
suspendOrder
in SchnittstelleOrderController
- Parameter:
orderId
- the ID of the processing orderforce
- indicates whether to force suspend the orderhttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- ResponseEntity containing a RestOrder and HTTP status
-
retryOrder
public org.springframework.http.ResponseEntity<RestOrder> retryOrder(String orderId, org.springframework.http.HttpHeaders httpHeaders) Retry processing order by ID.- Angegeben von:
retryOrder
in SchnittstelleOrderController
- Parameter:
orderId
- the ID of the processing orderhttpHeaders
- the HTTP request headers (injected)- Gibt zurück:
- ResponseEntity containing a RestOrder and HTTP status
-