Package org.openwms.wms.receiving.rest
Class ReceivingOrderFinder
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.receiving.rest.ReceivingOrderFinder
@Validated
@MeasuredRestController
public class ReceivingOrderFinder
extends org.openwms.core.http.AbstractWebController
A ReceivingOrderFinder.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ReceivingMapper
private final ReceivingService
<CaptureRequestVO> private final org.ameba.i18n.Translator
-
Constructor Summary
ConstructorDescriptionReceivingOrderFinder
(ReceivingService<CaptureRequestVO> service, org.ameba.i18n.Translator translator, ReceivingMapper receivingMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<List<ReceivingOrderVO>> findAll()
org.springframework.http.ResponseEntity
<ReceivingOrderVO> org.springframework.http.ResponseEntity
<ReceivingOrderVO> findOrderByOrderId
(String orderId) Methods inherited from class org.openwms.core.http.AbstractWebController
buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleRemovalNotAllowedException, handleTechnicalRuntimeException, handleValidationException, illegalArgumentException, translate
-
Field Details
-
service
-
translator
private final org.ameba.i18n.Translator translator -
receivingMapper
-
-
Constructor Details
-
ReceivingOrderFinder
public ReceivingOrderFinder(ReceivingService<CaptureRequestVO> service, org.ameba.i18n.Translator translator, ReceivingMapper receivingMapper)
-
-
Method Details
-
findAll
@Transactional(readOnly=true) @GetMapping(value="/v1/receiving-orders", produces="application/vnd.openwms.receiving-order-v1+json") public org.springframework.http.ResponseEntity<List<ReceivingOrderVO>> findAll() -
findOrder
@Transactional(readOnly=true) @GetMapping(value="/v1/receiving-orders/{pKey}", produces="application/vnd.openwms.receiving-order-v1+json") public org.springframework.http.ResponseEntity<ReceivingOrderVO> findOrder(@PathVariable("pKey") String pKey) -
findOrderByOrderId
@Transactional(readOnly=true) @GetMapping(value="/v1/receiving-orders", params="orderId", produces="application/vnd.openwms.receiving-order-v1+json") public org.springframework.http.ResponseEntity<ReceivingOrderVO> findOrderByOrderId(@RequestParam("orderId") String orderId)
-