public class AppointmentSlotIdConverter extends Object
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.Modifier | Constructor and Description |
---|---|
protected |
AppointmentSlotIdConverter() |
Modifier and Type | Method and 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) |
public static String appointmentToId(Appointment appointment)
public static String dateTimeToId(ZonedDateTime dateTime)
public static Instant idToInstant(String id) throws IllegalArgumentException
IllegalArgumentException
public static boolean isValidSlotId(String id)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.