Class PackagingUnitFinderController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.inventory.rest.pu.PackagingUnitFinderController
@Validated
@MeasuredRestController
public class PackagingUnitFinderController
extends org.openwms.core.http.AbstractWebController
A PackagingUnitFinderController.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PackagingUnitFinder
private static final org.slf4j.Logger
protected final PackagingUnitMapper
protected PackagingUnitTransformer
protected final TransportUnitService
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PackagingUnitFinderController
(PackagingUnitFinder finder, TransportUnitService transportUnitService, PackagingUnitMapper packagingUnitMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
<PusOnTU> org.springframework.http.ResponseEntity
<List<PackagingUnitVO>> findOnTUandLU
(String transportUnitBK, String luPos, String acceptHeader) org.springframework.http.ResponseEntity
<List<PackagingUnitVO>> findPUOnTU
(String transportUnitBK, 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) 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
-
LOGGER
private static final org.slf4j.Logger LOGGER -
finder
-
transportUnitService
-
packagingUnitMapper
-
packagingUnitTransformer
-
-
Constructor Details
-
PackagingUnitFinderController
protected PackagingUnitFinderController(PackagingUnitFinder finder, TransportUnitService transportUnitService, PackagingUnitMapper packagingUnitMapper)
-
-
Method Details
-
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) -
findPUOnTU
@Transactional(readOnly=true) @GetMapping("/v1/transport-units/{transportUnitBK}/load-units/packaging-units") public org.springframework.http.ResponseEntity<List<PackagingUnitVO>> findPUOnTU(@PathVariable("transportUnitBK") String transportUnitBK, @RequestHeader(value="Accept",required=false) String acceptHeader) -
findOnTU
-
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
-