Package org.openwms.wms.inventory.impl
Class ReservationServiceImpl
java.lang.Object
org.openwms.wms.inventory.impl.ReservationServiceImpl
- All Implemented Interfaces:
ReservationService
A ReservationServiceImpl.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final ReservationRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
acknowledgeReservation
(@NotBlank String reservationId, @NotBlank String acknowledgeId) Acknowledge a previously set reservation on aPackagingUnit
.void
deleteReservation
(@NotNull Long pk) Delete aReservation
.void
deleteReservations
(@NotBlank String reservationId) Delete allReservation
s.void
deleteReservationsForPackagingUnits
(@NotEmpty List<PackagingUnit> pus) Delete existingReservation
s for the givenPackagingUnit
s.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
reservationRepository
-
-
Constructor Details
-
ReservationServiceImpl
ReservationServiceImpl(ReservationRepository reservationRepository)
-
-
Method Details
-
deleteReservation
Delete aReservation
.- Specified by:
deleteReservation
in interfaceReservationService
- Parameters:
pk
- The primary key of the Reservation
-
deleteReservations
Delete allReservation
s.- Specified by:
deleteReservations
in interfaceReservationService
- Parameters:
reservationId
- For whom the Reservations have been created
-
acknowledgeReservation
@Measured public void acknowledgeReservation(@NotBlank @NotBlank String reservationId, @NotBlank @NotBlank String acknowledgeId) Acknowledge a previously set reservation on aPackagingUnit
. If noPackagingUnit
is reserved with thereservationId
the implementation might silently return without further action.- Specified by:
acknowledgeReservation
in interfaceReservationService
- Parameters:
reservationId
- The previously set reservationIdacknowledgeId
- The acknowledgeId to replace the reservationId with
-
deleteReservationsForPackagingUnits
@Measured public void deleteReservationsForPackagingUnits(@NotEmpty @NotEmpty List<PackagingUnit> pus) Delete existingReservation
s for the givenPackagingUnit
s.- Specified by:
deleteReservationsForPackagingUnits
in interfaceReservationService
- Parameters:
pus
- The PackagingUnits
-