Package org.openwms.wms.inventory.rest
Class PackagingUnitController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.inventory.rest.PackagingUnitController
@Validated
@MeasuredRestController
public class PackagingUnitController
extends org.openwms.core.http.AbstractWebController
A PackagingUnitController.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PackagingUnitCreator
protected final PackagingUnitFinder
private static final org.slf4j.Logger
protected final org.ameba.mapping.BeanMapper
protected final PackagingUnitMover
protected final PackagingUnitMapper
protected PackagingUnitTransformer
protected final PackagingUnitService
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PackagingUnitController
(PackagingUnitCreator creator, PackagingUnitFinder finder, PackagingUnitMover mover, PackagingUnitService service, org.ameba.mapping.BeanMapper mapper, PackagingUnitMapper packagingUnitMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void>
create
(String transportUnitBK, String luPos, String loadUnitType, @Valid CreatePURequestVO request) org.springframework.http.ResponseEntity<Void>
createOnLocation
(@Valid PackagingUnitVO pu) org.springframework.http.ResponseEntity<Void>
org.springframework.http.ResponseEntity<Void>
deleteOnLocation
(@Valid DeletePURequestVO request) protected List<PackagingUnitVO>
enrichWithLinks
(PackagingUnit... eos) org.springframework.http.ResponseEntity<PackagingUnitVO>
findByPKey
(String pKey, String acceptHeader) org.springframework.http.ResponseEntity<List<PackagingUnitVO>>
findForProduct
(String sku, String amount, @Pattern(regexp="^(asc|desc)$") String sortDirection, String sortProperty, String acceptHeader) org.springframework.http.ResponseEntity<List<PackagingUnitVO>>
findForProductInLG
(String productPKey, String locationGroupName, @Pattern(regexp="^(asc|desc)$") String sortDirection, String sortProperty, String acceptHeader) org.springframework.http.ResponseEntity<List<PackagingUnitVO>>
org.springframework.http.ResponseEntity<List<PackagingUnitVO>>
findOnTUandLU
(String transportUnitBK, String luPos, String acceptHeader) org.springframework.http.ResponseEntity<org.openwms.core.units.api.Measurable>
findQuantityInLG
(String productPKey, String sku, String locationGroupName) org.springframework.http.ResponseEntity<org.openwms.core.units.api.Measurable>
findQuantityOnLocation
(String sku, String erpCode) org.springframework.http.ResponseEntity<org.openwms.core.http.Index>
index()
org.springframework.http.ResponseEntity<Void>
moveBetweenLocations
(@Valid MovePURequestVO request) org.springframework.http.ResponseEntity<Void>
moveFromLocationToLoadUnit
(@Valid MovePURequestVO request) org.springframework.http.ResponseEntity<Void>
movePUQuantity
(String transportUnitBK, String luPos, @Valid MovePURequestVO request) org.springframework.http.ResponseEntity<Void>
org.springframework.http.ResponseEntity<Void>
reportProblemForPUinLU
(String transportUnitBK, String luPos, @Valid ReportProblemVO problem) org.springframework.http.ResponseEntity<PackagingUnitVO>
update
(String pKey, PackagingUnitVO pu) 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
-
LOGGER
private static final org.slf4j.Logger LOGGER -
creator
-
finder
-
mover
-
service
-
mapper
protected final org.ameba.mapping.BeanMapper mapper -
packagingUnitMapper
-
packagingUnitTransformer
-
-
Constructor Details
-
PackagingUnitController
protected PackagingUnitController(PackagingUnitCreator creator, PackagingUnitFinder finder, PackagingUnitMover mover, PackagingUnitService service, org.ameba.mapping.BeanMapper mapper, PackagingUnitMapper packagingUnitMapper)
-
-
Method Details
-
index
@GetMapping("/v1/packaging-units/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index() -
create
@PostMapping("/v1/transport-units/{transportUnitBK}/load-units/{luPos}/packaging-units") public org.springframework.http.ResponseEntity<Void> create(@PathVariable("transportUnitBK") String transportUnitBK, @PathVariable("luPos") String luPos, @RequestParam(value="loadUnitType",required=false) String loadUnitType, @Valid @RequestBody @Valid CreatePURequestVO request) -
createOnLocation
@Validated(CreatePackagingUnit.class) @PostMapping("/v1/packaging-units") public org.springframework.http.ResponseEntity<Void> createOnLocation(@Valid @RequestBody @Valid PackagingUnitVO pu) -
reportProblemForPUinLU
@PostMapping("/v1/transport-units/{transportUnitBK}/load-units/{luPos}/packaging-units/failures") public org.springframework.http.ResponseEntity<Void> reportProblemForPUinLU(@PathVariable("transportUnitBK") String transportUnitBK, @PathVariable("luPos") String luPos, @Valid @RequestBody @Valid ReportProblemVO problem) -
releasePU
-
movePUQuantity
@PutMapping("/v1/transport-units/{transportUnitBK}/load-units/{luPos}/packaging-units") public org.springframework.http.ResponseEntity<Void> movePUQuantity(@PathVariable("transportUnitBK") String transportUnitBK, @PathVariable("luPos") String luPos, @Valid @RequestBody @Valid MovePURequestVO request) -
moveBetweenLocations
@PutMapping("/v1/packaging-units/move-between-locations") public org.springframework.http.ResponseEntity<Void> moveBetweenLocations(@Valid @RequestBody @Valid MovePURequestVO request) -
moveFromLocationToLoadUnit
@PutMapping("/v1/packaging-units/move-to-load-unit") public org.springframework.http.ResponseEntity<Void> moveFromLocationToLoadUnit(@Valid @RequestBody @Valid MovePURequestVO request) -
deleteOnLocation
@DeleteMapping("/v1/packaging-units") public org.springframework.http.ResponseEntity<Void> deleteOnLocation(@Valid @RequestBody @Valid DeletePURequestVO request) -
delete
-
update
@PutMapping("/v1/packaging-units/{pKey}") public org.springframework.http.ResponseEntity<PackagingUnitVO> update(@PathVariable("pKey") String pKey, @RequestBody PackagingUnitVO pu) -
findByPKey
@Transactional(readOnly=true) @GetMapping("/v1/packaging-units/{pKey}") public org.springframework.http.ResponseEntity<PackagingUnitVO> findByPKey(@PathVariable("pKey") String pKey, @RequestHeader(value="Accept",required=false) String acceptHeader) -
findOnTU
@Transactional(readOnly=true) @GetMapping("/v1/transport-units/{transportUnitBK}/load-units/packaging-units") public org.springframework.http.ResponseEntity<List<PackagingUnitVO>> findOnTU(@PathVariable("transportUnitBK") String transportUnitBK, @RequestHeader(value="Accept",required=false) String acceptHeader) -
findOnTUandLU
@Transactional(readOnly=true) @GetMapping("/v1/transport-units/{transportUnitBK}/load-units/{luPos}/packaging-units") public org.springframework.http.ResponseEntity<List<PackagingUnitVO>> findOnTUandLU(@PathVariable("transportUnitBK") String transportUnitBK, @PathVariable("luPos") String luPos, @RequestHeader(value="Accept",required=false) String acceptHeader) -
findForProductInLG
@Transactional(readOnly=true) @GetMapping(value="/v1/packaging-units", params={"productPKey","locationGroupName"}) public org.springframework.http.ResponseEntity<List<PackagingUnitVO>> findForProductInLG(@RequestParam("productPKey") String productPKey, @RequestParam("locationGroupName") String locationGroupName, @RequestParam(value="sortDirection",required=false) @Pattern(regexp="^(asc|desc)$") @Pattern(regexp="^(asc|desc)$") String sortDirection, @RequestParam(value="sortProperty",required=false) String sortProperty, @RequestHeader(value="Accept",required=false) String acceptHeader) -
findQuantityInLG
@Transactional(readOnly=true) @GetMapping(value="/v1/packaging-units/amount", params="locationGroupName") public org.springframework.http.ResponseEntity<org.openwms.core.units.api.Measurable> findQuantityInLG(@RequestParam(value="productPKey",required=false) String productPKey, @RequestParam(value="sku",required=false) String sku, @RequestParam("locationGroupName") String locationGroupName) -
findQuantityOnLocation
-
findForProduct
@Transactional(readOnly=true) @GetMapping(value="/v1/packaging-units", params={"sku","amount"}) public org.springframework.http.ResponseEntity<List<PackagingUnitVO>> findForProduct(@RequestParam("sku") String sku, @RequestParam("amount") String amount, @RequestParam(value="sortDirection",required=false) @Pattern(regexp="^(asc|desc)$") @Pattern(regexp="^(asc|desc)$") String sortDirection, @RequestParam(value="sortProperty",required=false) String sortProperty, @RequestHeader(value="Accept",required=false) String acceptHeader) -
enrichWithLinks
-