Package org.openwms.wms.receiving
Class ReceivingController
- java.lang.Object
-
- org.openwms.core.http.AbstractWebController
-
- org.openwms.wms.receiving.ReceivingController
-
@Validated @MeasuredRestController public class ReceivingController extends org.openwms.core.http.AbstractWebController
A ReceivingController.- Author:
- Heiko Scherrer
-
-
Field Summary
Fields Modifier and Type Field Description private org.ameba.mapping.BeanMapper
mapper
private ReceivingService
service
-
Constructor Summary
Constructors Constructor Description ReceivingController(ReceivingService service, org.ameba.mapping.BeanMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Void>
cancelOrder(String pKey)
org.springframework.http.ResponseEntity<Void>
captureOrder(String pKey, String loadUnitType, @Valid CaptureRequestVO request)
org.springframework.http.ResponseEntity<Void>
createOrder(@Valid ReceivingOrderVO orderVO, javax.servlet.http.HttpServletRequest req)
org.springframework.http.ResponseEntity<List<ReceivingOrderVO>>
findAll()
org.springframework.http.ResponseEntity<ReceivingOrderVO>
findOrder(String pKey)
org.springframework.http.ResponseEntity<ReceivingOrderVO>
findOrderByOrderId(String orderId)
org.springframework.http.ResponseEntity<org.openwms.core.http.Index>
index()
-
Methods inherited from class org.openwms.core.http.AbstractWebController
buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleTechnicalRuntimeException, handleValidationException, IllegalArgumentException, translate
-
-
-
-
Field Detail
-
service
private final ReceivingService service
-
mapper
private final org.ameba.mapping.BeanMapper mapper
-
-
Constructor Detail
-
ReceivingController
ReceivingController(ReceivingService service, org.ameba.mapping.BeanMapper mapper)
-
-
Method Detail
-
index
@GetMapping("/v1/receiving-orders/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index()
-
findAll
@Transactional(readOnly=true) @GetMapping("/v1/receiving-orders") public org.springframework.http.ResponseEntity<List<ReceivingOrderVO>> findAll()
-
findOrder
@Transactional(readOnly=true) @GetMapping("/v1/receiving-orders/{pKey}") public org.springframework.http.ResponseEntity<ReceivingOrderVO> findOrder(@PathVariable("pKey") String pKey)
-
findOrderByOrderId
@Transactional(readOnly=true) @GetMapping(value="/v1/receiving-orders", params="orderId") public org.springframework.http.ResponseEntity<ReceivingOrderVO> findOrderByOrderId(@RequestParam("orderId") String orderId)
-
createOrder
@PostMapping("/v1/receiving-orders") public org.springframework.http.ResponseEntity<Void> createOrder(@Valid @RequestBody @Valid ReceivingOrderVO orderVO, javax.servlet.http.HttpServletRequest req)
-
captureOrder
@PostMapping(value="/v1/receiving-orders/{pKey}/capture", params="loadUnitType") public org.springframework.http.ResponseEntity<Void> captureOrder(@PathVariable("pKey") String pKey, @RequestParam("loadUnitType") String loadUnitType, @Valid @RequestBody @Valid CaptureRequestVO request)
-
-