Class ReceivingServiceImpl

  • All Implemented Interfaces:

    class ReceivingServiceImpl
    extends Object
    implements ReceivingService
    A ReceivingServiceImpl is a Spring managed transactional Services that deals with ReceivingOrders.
    Heiko Scherrer
    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • overbookingAllowed

        private final boolean overbookingAllowed
      • translator

        private final org.ameba.i18n.Translator translator
      • publisher

        private final org.springframework.context.ApplicationEventPublisher publisher
    • Constructor Detail

      • ReceivingServiceImpl

                             boolean overbookingAllowed,
                             org.ameba.i18n.Translator translator,
                             ReceivingOrderRepository repository,
                             ProductService service,
                             org.springframework.context.ApplicationEventPublisher publisher,
                             PackagingUnitApi packagingUnitApi)
    • Method Detail

      • capture

        public @NotNull ReceivingOrder capture​(@NotEmpty
                                               @NotEmpty String pKey,
                                               @NotEmpty String transportUnitId,
                                               @NotEmpty String loadUnitPosition,
                                               @NotEmpty String loadUnitType,
                                               @NotNull org.openwms.core.units.api.Measurable quantityReceived,
                                               CaptureDetailsVO details,
                                               @NotNull @Valid
                                               @NotNull @Valid Product product)
        Decrease one of the ReceivingOrderPositions by the received amount of the given Product and book the received article to the TransportUnit identified by the transportUnitId.
        Specified by:
        capture in interface ReceivingService
        pKey - The persistent key of the ReceivingOrder
        transportUnitId - The identifier of the TransportUnit to book the Product to
        loadUnitPosition - The position of the LoadUnit
        loadUnitType - In case the LoadUnit is created this is type for the LoadUnit
        quantityReceived - The received quantity
        product - The received Product
        The updated ReceivingOrder instance with updated positions
      • findByPKey

        public @NotNull ReceivingOrder findByPKey​(@NotEmpty
                                                  @NotEmpty String pKey)
        Find and return a ReceivingOrder identified by its synthetic persistent key.
        Specified by:
        findByPKey in interface ReceivingService
        pKey - The synthetic persistent key
        The instance