Class RestServiceFacadeImpl<T extends CaptureRequestVO>

java.lang.Object
org.openwms.wms.receiving.rest.RestServiceFacadeImpl<T>
All Implemented Interfaces:
RestServiceFacade<T>

@Service public class RestServiceFacadeImpl<T extends CaptureRequestVO> extends Object implements RestServiceFacade<T>
A RestServiceFacadeImpl.
Author:
Heiko Scherrer
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • receivingMapper

      private final ReceivingMapper receivingMapper
    • receivingService

      private final ReceivingService receivingService
  • Constructor Details

  • Method Details

    • capture

      @Measured @Transactional @NotNull public @NotNull Optional<ReceivingOrderVO> capture(@NotBlank @NotBlank String pKey, @NotNull @Valid @NotNull @Valid List<T> requests)
      Capturing on a ReceivingOrder means:
      • Decrease one of the ReceivingOrderPositions by the received amount of the given Product
      • Create physical PackagingUnit(s) from the received quantity
      Specified by:
      capture in interface RestServiceFacade<T extends CaptureRequestVO>
      Parameters:
      pKey - The persistent key of the ReceivingOrder
      requests - Contains all the capturing information according to the process in use
      Returns:
      The updated ReceivingOrder instance with updated positions
    • captureBlindReceipts

      public void captureBlindReceipts(@NotNull @NotNull List<T> requests)
      Capture an unexpected receipt (aka Blind Receipt) that has no reference to a ReceivingOrder.
      • Create physical PackagingUnit(s) from the received quantity
      Specified by:
      captureBlindReceipts in interface RestServiceFacade<T extends CaptureRequestVO>
      Parameters:
      requests - Contains all the capturing information according to the process in use
    • cancelOrder

      @Measured @Transactional @NotNull public @NotNull ReceivingOrderVO cancelOrder(@NotBlank @NotBlank String pKey)
      Cancel a ReceivingOrder.
      Specified by:
      cancelOrder in interface RestServiceFacade<T extends CaptureRequestVO>
      Parameters:
      pKey - The synthetic persistent key
      Returns:
      The cancelled instance
    • changeState

      @Measured @Transactional @NotNull public @NotNull ReceivingOrderVO changeState(@NotBlank @NotBlank String pKey, @NotNull @NotNull OrderState state)
      Change the state of a ReceivingOrder.
      Specified by:
      changeState in interface RestServiceFacade<T extends CaptureRequestVO>
      Parameters:
      pKey - The synthetic persistent key
      state - The new state
      Returns:
      The updated instance
    • update

      @Measured @Transactional @NotNull public @NotNull ReceivingOrderVO update(@NotBlank @NotBlank String pKey, @NotNull @NotNull ReceivingOrderVO receivingOrder)
      Update an existing ReceivingOrder with the given data.
      Specified by:
      update in interface RestServiceFacade<T extends CaptureRequestVO>
      Parameters:
      pKey - The synthetic persistent key
      receivingOrder - The representation to update
      Returns:
      The updated instance
    • complete

      @Measured @Transactional @NotNull public @NotNull ReceivingOrderVO complete(@NotBlank @NotBlank String pKey)
      Complete a ReceivingOrder and all positions. Satisfy quantities and set the state to COMPLETED.
      Specified by:
      complete in interface RestServiceFacade<T extends CaptureRequestVO>
      Parameters:
      pKey - The synthetic persistent key
      Returns:
      The updated instance