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 StringappointmentToId(Appointment appointment) static StringdateTimeToId(ZonedDateTime dateTime) static InstantidToInstant(String id) static Instantstatic StringinstantToId(Instant instant) static booleanisValidSlotId(String id)
-
Constructor Details
-
AppointmentSlotIdConverter
protected AppointmentSlotIdConverter()
-
-
Method Details
-
appointmentToId
-
dateTimeToId
-
idToInstant
- Throws:
IllegalArgumentException
-
idToInstantNull
-
instantToId
-
isValidSlotId
-