Class AllocationController

java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.inventory.allocation.AllocationController

@Validated @MeasuredRestController public class AllocationController extends org.openwms.core.http.AbstractWebController
A AllocationController.
Author:
Heiko Scherrer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final AllocationMapper
     
    private final AllocationService
     
    private static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AllocationController(AllocationMapper allocationMapper, AllocationService allocationService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<List<AllocationVO>>
    allocate(@Valid @NotNull Demand demand, List<String> sourceLocationGroupNames)
     

    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

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • allocationMapper

      private final AllocationMapper allocationMapper
    • allocationService

      private final AllocationService allocationService
  • Constructor Details

  • Method Details

    • allocate

      @PostMapping("/allocation/transport-units") public org.springframework.http.ResponseEntity<List<AllocationVO>> allocate(@Valid @NotNull @RequestBody @Valid @NotNull Demand demand, @RequestParam(value="sourceLocationGroupNames",required=false) List<String> sourceLocationGroupNames)