Package org.openwms.wms.inventory.rest
Class LoadUnitController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.inventory.rest.LoadUnitController
@Validated
@MeasuredRestController
public class LoadUnitController
extends org.openwms.core.http.AbstractWebController
A LoadUnitController.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LoadUnitMapper
private final org.ameba.mapping.BeanMapper
private final LoadUnitService
-
Constructor Summary
ConstructorsConstructorDescriptionLoadUnitController
(LoadUnitService service, org.ameba.mapping.BeanMapper mapper, LoadUnitMapper loadUnitMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void>
org.springframework.http.ResponseEntity<LoadUnitVO>
findByPKey
(String pKey) org.springframework.http.ResponseEntity<List<PackagingUnitVO>>
findPUinLU
(String pKey) org.springframework.http.ResponseEntity<org.openwms.core.http.Index>
index()
org.springframework.http.ResponseEntity<Void>
putProductInto
(String pKey, ProductVO productVO) 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 Details
-
service
-
mapper
private final org.ameba.mapping.BeanMapper mapper -
loadUnitMapper
-
-
Constructor Details
-
LoadUnitController
LoadUnitController(LoadUnitService service, org.ameba.mapping.BeanMapper mapper, LoadUnitMapper loadUnitMapper)
-
-
Method Details
-
index
@GetMapping("/v1/load-units/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index() -
findByPKey
@Transactional(readOnly=true) @GetMapping("/v1/load-units/{pKey}") public org.springframework.http.ResponseEntity<LoadUnitVO> findByPKey(@PathVariable("pKey") String pKey) -
findPUinLU
@Transactional(readOnly=true) @GetMapping("/v1/load-units/{pKey}/packaging-units") public org.springframework.http.ResponseEntity<List<PackagingUnitVO>> findPUinLU(@PathVariable("pKey") String pKey) -
divide
-
putProductInto
-