Interface ReservationService

All Known Implementing Classes:
ReservationServiceImpl

public interface ReservationService
A ReservationService manages reservations of PackagingUnit.
Author:
Heiko Scherrer
  • Method Details

    • deleteReservation

      void deleteReservation(@NotNull @NotNull Long pk)
      Delete a Reservation.
      Parameters:
      pk - The primary key of the Reservation
    • deleteReservations

      void deleteReservations(@NotBlank @NotBlank String reservationId)
      Delete all Reservations.
      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 a PackagingUnit. If no PackagingUnit is reserved with the reservationId the implementation might silently return without further action.
      Parameters:
      reservationId - The previously set reservationId
      acknowledgeId - The acknowledgeId to replace the reservationId with
    • deleteReservationsForPackagingUnits

      void deleteReservationsForPackagingUnits(@NotEmpty @NotEmpty List<PackagingUnit> pus)
      Delete existing Reservations for the given PackagingUnits.
      Parameters:
      pus - The PackagingUnits