Package de.xima.fc.appointment
Class AppointmentSlotIdConverter
java.lang.Object
de.xima.fc.appointment.AppointmentSlotIdConverter
- Direct Known Subclasses:
AppointmentConverter
Converts between a free
IAppointmentFreeSlot
returned by the appointment free slot servlet and the
corresponding LocalDateTime
. This ID is used in the form to refer to the appointment slot the user wishes to
book. The ID is then transferred to the server, where the slot corresponding to the ID is booked.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
appointmentToId
(Appointment appointment) static String
dateTimeToId
(ZonedDateTime dateTime) static Instant
idToInstant
(String id) static Instant
static String
instantToId
(Instant instant) static boolean
isValidSlotId
(String id)
-
Constructor Details
-
AppointmentSlotIdConverter
protected AppointmentSlotIdConverter()
-
-
Method Details
-
appointmentToId
-
dateTimeToId
-
idToInstant
- Throws:
IllegalArgumentException
-
idToInstantNull
-
instantToId
-
isValidSlotId
-