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 Details

  • Constructor Details

  • 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

      @PostMapping("/v1/packaging-units/{pKey}/release") public org.springframework.http.ResponseEntity<Void> releasePU(@PathVariable("pKey") String pKey)
    • 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

      @DeleteMapping("/v1/packaging-units/{pKey}") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable String pKey)
    • 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

      @Transactional(readOnly=true) @GetMapping(value="/v1/packaging-units/amount", params={"sku","erpCode"}) public org.springframework.http.ResponseEntity<org.openwms.core.units.api.Measurable> findQuantityOnLocation(@RequestParam("sku") String sku, @RequestParam("erpCode") String erpCode)
    • 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

      protected List<PackagingUnitVO> enrichWithLinks(PackagingUnit... eos)