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

    Fields
    Modifier and Type
    Field
    Description
    private final LoadUnitMapper
     
    private final org.ameba.mapping.BeanMapper
     
    private final LoadUnitService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LoadUnitController(LoadUnitService service, org.ameba.mapping.BeanMapper mapper, LoadUnitMapper loadUnitMapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<Void>
    divide(String transportUnitBK, String loadUnitType, int parts)
     
    org.springframework.http.ResponseEntity<LoadUnitVO>
     
    org.springframework.http.ResponseEntity<List<PackagingUnitVO>>
     
    org.springframework.http.ResponseEntity<org.openwms.core.http.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • service

      private final LoadUnitService service
    • mapper

      private final org.ameba.mapping.BeanMapper mapper
    • loadUnitMapper

      private final LoadUnitMapper loadUnitMapper
  • Constructor Details

  • 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

      @PostMapping(value="/v1/transport-unit", params={"transportUnitBK","loadUnitType","parts"}) public org.springframework.http.ResponseEntity<Void> divide(@RequestParam("transportUnitBK") String transportUnitBK, @RequestParam("loadUnitType") String loadUnitType, @RequestParam("parts") int parts)
    • putProductInto

      @PutMapping("/v1/load-units/{pKey}") public org.springframework.http.ResponseEntity<Void> putProductInto(@PathVariable("pKey") String pKey, @RequestBody ProductVO productVO)