Package org.openwms.wms.inventory
Interface ReservationService
- All Known Implementing Classes:
ReservationServiceImpl
public interface ReservationService
A ReservationService manages reservations of
PackagingUnit
.- Author:
- Heiko Scherrer
-
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.void
saveReservation
(@NotNull TransportUnitReservation reservation) Save aReservation
.
-
Method Details
-
deleteReservation
Delete aReservation
.- Parameters:
pk
- The primary key of the Reservation
-
saveReservation
Save aReservation
.- Parameters:
reservation
- The instance to create or update
-
deleteReservations
Delete allReservation
s.- Parameters:
reservationId
- For whom the Reservations have been created
-
acknowledgeReservation
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.- Parameters:
reservationId
- The previously set reservationIdacknowledgeId
- The acknowledgeId to replace the reservationId with
-
deleteReservationsForPackagingUnits
Delete existingReservation
s for the givenPackagingUnit
s.- Parameters:
pus
- The PackagingUnits
-