Class ReservationServiceImpl
java.lang.Object
org.openwms.common.transport.reservation.ReservationServiceImpl
- All Implemented Interfaces:
ReservationService
A ReservationServiceImpl.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final ReservationRepository
private final TransportUnitReservationRepository
-
Constructor Summary
ConstructorDescriptionReservationServiceImpl
(ReservationRepository reservationRepository, TransportUnitReservationRepository transportUnitReservationRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acknowledgeReservation
(@NotBlank String reservationId, @NotBlank String acknowledgeId) Acknowledge a previously set reservation on aTransportUnit
.void
saveReservation
(TransportUnitReservation reservation) Save aTransportUnitReservation
.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
reservationRepository
-
transportUnitReservationRepository
-
-
Constructor Details
-
ReservationServiceImpl
ReservationServiceImpl(ReservationRepository reservationRepository, TransportUnitReservationRepository transportUnitReservationRepository)
-
-
Method Details
-
saveReservation
Save aTransportUnitReservation
.- Specified by:
saveReservation
in interfaceReservationService
- Parameters:
reservation
- The instance to create or update
-
acknowledgeReservation
@Measured public void acknowledgeReservation(@NotBlank @NotBlank String reservationId, @NotBlank @NotBlank String acknowledgeId) Acknowledge a previously set reservation on aTransportUnit
. If noTransportUnit
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
-