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 freeIAppointmentFreeSlot
returned 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 protected
AppointmentSlotIdConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
appointmentToId(Appointment appointment)
static String
dateTimeToId(ZonedDateTime dateTime)
static Instant
idToInstant(String id)
static Instant
idToInstantNull(String id)
static String
instantToId(Instant instant)
static boolean
isValidSlotId(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)
-
-