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.Loggerprivate final ReservationRepository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledgeReservation(@NotBlank String reservationId, @NotBlank String acknowledgeId) Acknowledge a previously set reservation on aPackagingUnit.voiddeleteReservation(@NotNull Long pk) Delete aReservation.voiddeleteReservations(@NotBlank String reservationId) Delete allReservations.voiddeleteReservationsForPackagingUnits(@NotEmpty List<PackagingUnit> pus) Delete existingReservations for the givenPackagingUnits.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
reservationRepository
-
-
Constructor Details
-
ReservationServiceImpl
ReservationServiceImpl(ReservationRepository reservationRepository)
-
-
Method Details
-
deleteReservation
Delete aReservation.- Specified by:
deleteReservationin interfaceReservationService- Parameters:
pk- The primary key of the Reservation
-
deleteReservations
Delete allReservations.- Specified by:
deleteReservationsin 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 noPackagingUnitis reserved with thereservationIdthe implementation might silently return without further action.- Specified by:
acknowledgeReservationin 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 existingReservations for the givenPackagingUnits.- Specified by:
deleteReservationsForPackagingUnitsin interfaceReservationService- Parameters:
pus- The PackagingUnits
-