Package de.xima.fc.appointment
Class AppointmentSlotIdConverter
- java.lang.Object
-
- de.xima.fc.appointment.AppointmentSlotIdConverter
-
- Direct Known Subclasses:
AppointmentConverter
public class AppointmentSlotIdConverter extends Object
Converts between a freeIAppointmentFreeSlotreturned by the appointment free slot servlet and the correspondingLocalDateTime. 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 Modifier Constructor Description protectedAppointmentSlotIdConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringappointmentToId(Appointment appointment)static StringdateTimeToId(ZonedDateTime dateTime)static InstantidToInstant(String id)static InstantidToInstantNull(String id)static StringinstantToId(Instant instant)static booleanisValidSlotId(String id)
-
-
-
Method Detail
-
appointmentToId
public static String appointmentToId(Appointment appointment)
-
dateTimeToId
public static String dateTimeToId(ZonedDateTime dateTime)
-
idToInstant
public static Instant idToInstant(String id) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
isValidSlotId
public static boolean isValidSlotId(String id)
-
-