public class AppointmentBookingExecutor extends Object
| Constructor and Description | 
|---|
AppointmentBookingExecutor(IEntityContext ec)
Creates a new handler for handling booking of an appointment. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
cancelBookedAppointment(IAppointmentDeleteBookingParams params,
                       Instant now)
Deletes (cancels) an existing appointment. 
 | 
Appointment | 
createBookedAppointment(IAppointmentCreateBookingParams params,
                       Instant now)
Creates (books) a new appointment at a given time slot. 
 | 
Appointment | 
moveBookedAppointment(IAppointmentMoveBookingParams params,
                     Instant now)
Updates (moves) an appointment to a different time slot. 
 | 
List<EAppointmentBookingError> | 
validateAppointments(IAppointmentValidateParams params,
                    Instant now)
Validates whether the given appointments can be created or updated. 
 | 
public AppointmentBookingExecutor(IEntityContext ec)
ec - Entity context for accessing the database.public void cancelBookedAppointment(IAppointmentDeleteBookingParams params, Instant now) throws AppointmentBookingException
validateAppointments(IAppointmentValidateParams, Instant) first if you have not done so yet.params - Parameters of the delete operation.now - The current server time.AppointmentBookingException - When the appointment could not be deleted.public Appointment createBookedAppointment(IAppointmentCreateBookingParams params, Instant now) throws AppointmentBookingException
validateAppointments(IAppointmentValidateParams, Instant) first if you have not done so yet.params - Parameters of the book operation.now - The current server time.AppointmentBookingException - When the appointment could not be booked.public Appointment moveBookedAppointment(IAppointmentMoveBookingParams params, Instant now) throws AppointmentBookingException
validateAppointments(IAppointmentValidateParams, Instant) first if you have not done so yet.params - Parameters of the move operation.now - The current server time.AppointmentBookingException - When the appointment could not be moved.public List<EAppointmentBookingError> validateAppointments(IAppointmentValidateParams params, Instant now)
params - Parameters with the appointments to validate.now - The current server time.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.