Package de.dlr.proseo.model.rest
Class OrderControllerDecorator
java.lang.Object
de.dlr.proseo.model.rest.OrderControllerDecorator
- All Implemented Interfaces:
OrderController
@RestController
@RequestMapping(value="/proseo/order-mgr/{version}/orders",
produces="application/json")
@Validated
public class OrderControllerDecorator
extends Object
implements OrderController
No description
(Generated with springmvc-raml-parser v.2.0.5)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?> countOrders(String mission, String identifier, Long nid) Count orders filtered by mission, identifier and id not equal nid.org.springframework.http.ResponseEntity<?> countSelectOrders(String mission, String identifier, String[] state, String[] productClass, String startTime, String stopTime, Long recordFrom, Long recordTo, String[] orderBy) Calculate the amount of orders satisfying the selection parameters.org.springframework.http.ResponseEntity<RestOrder> createOrder(@Valid RestOrder restOrder) Create an order from the given JSON objectorg.springframework.http.ResponseEntity<?> deleteOrderById(Long id) Delete an order by IDgetAndSelectOrders(String mission, String identifier, String[] state, String[] productClass, String startTime, String stopTime, Long recordFrom, Long recordTo, String[] orderBy) Retrieve a list of orders satisfying the selection parametersorg.springframework.http.ResponseEntity<RestOrder> getOrderById(Long id) Find the order with the given IDgetOrders(String mission, String identifier, String[] productClasses, String startTimeFrom, String startTimeTo, String executionTimeFrom, String executionTimeTo) List of all orders filtered by mission, identifier, productClasses, starttime rangeorg.springframework.http.ResponseEntity<RestOrder> modifyOrder(Long id, RestOrder restOrder) Update the order with the given ID with the attribute values of the given JSON object.
-
Constructor Details
-
OrderControllerDecorator
public OrderControllerDecorator()
-
-
Method Details
-
getOrders
@RequestMapping(value="", method=GET) public org.springframework.http.ResponseEntity<List<RestOrder>> getOrders(@RequestParam(required=false) String mission, @RequestParam(required=false) String identifier, @RequestParam(required=false) String[] productClasses, @RequestParam(required=false) String startTimeFrom, @RequestParam(required=false) String startTimeTo, @RequestParam(required=false) String executionTimeFrom, @RequestParam(required=false) String executionTimeTo) List of all orders filtered by mission, identifier, productClasses, starttime range- Specified by:
getOrdersin interfaceOrderController
-
createOrder
@RequestMapping(value="", method=POST) public org.springframework.http.ResponseEntity<RestOrder> createOrder(@Valid @RequestBody @Valid RestOrder restOrder) Create an order from the given JSON object- Specified by:
createOrderin interfaceOrderController
-
countOrders
@RequestMapping(value="/count", method=GET) public org.springframework.http.ResponseEntity<?> countOrders(@RequestParam(required=false) String mission, @RequestParam(required=false) String identifier, @RequestParam(required=false) Long nid) Count orders filtered by mission, identifier and id not equal nid.- Specified by:
countOrdersin interfaceOrderController
-
countSelectOrders
@RequestMapping(value="/countselect", method=GET) public org.springframework.http.ResponseEntity<?> countSelectOrders(@RequestParam(required=false) String mission, @RequestParam(required=false) String identifier, @RequestParam(required=false) String[] state, @RequestParam(required=false) String[] productClass, @RequestParam(required=false) String startTime, @RequestParam(required=false) String stopTime, @RequestParam(required=false) Long recordFrom, @RequestParam(required=false) Long recordTo, @RequestParam(required=false) String[] orderBy) Calculate the amount of orders satisfying the selection parameters. Mission code is mandatory.- Specified by:
countSelectOrdersin interfaceOrderController
-
getAndSelectOrders
@RequestMapping(value="/select", method=GET) public org.springframework.http.ResponseEntity<List<RestOrder>> getAndSelectOrders(@RequestParam(required=false) String mission, @RequestParam(required=false) String identifier, @RequestParam(required=false) String[] state, @RequestParam(required=false) String[] productClass, @RequestParam(required=false) String startTime, @RequestParam(required=false) String stopTime, @RequestParam(required=false) Long recordFrom, @RequestParam(required=false) Long recordTo, @RequestParam(required=false) String[] orderBy) Retrieve a list of orders satisfying the selection parameters- Specified by:
getAndSelectOrdersin interfaceOrderController
-
getOrderById
@RequestMapping(value="/{id}", method=GET) public org.springframework.http.ResponseEntity<RestOrder> getOrderById(@PathVariable Long id) Find the order with the given ID- Specified by:
getOrderByIdin interfaceOrderController
-
deleteOrderById
@RequestMapping(value="/{id}", method=DELETE) public org.springframework.http.ResponseEntity<?> deleteOrderById(@PathVariable Long id) Delete an order by ID- Specified by:
deleteOrderByIdin interfaceOrderController
-
modifyOrder
@RequestMapping(value="/{id}", method=PATCH) public org.springframework.http.ResponseEntity<RestOrder> modifyOrder(@PathVariable Long id, @RequestBody RestOrder restOrder) Update the order with the given ID with the attribute values of the given JSON object.- Specified by:
modifyOrderin interfaceOrderController
-