public class AppointmentHandler extends GenericHandler implements IAppointmentHandler
Appointment entities.LOG| Constructor and Description |
|---|
AppointmentHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelBookedAppointment(UserContext uc,
IAppointmentDeleteBookingParams params)
Cancels the given appointment.
|
Appointment |
createBookedAppointment(UserContext uc,
IAppointmentCreateBookingParams params)
Books the given appointment.
|
List<Appointment> |
getAllBy(UserContext uc,
IAppointmentQueryParams params)
Returns all appointments that match the given query parameters.
|
Appointment |
getByUUID(UserContext uc,
String uuid)
Finds the appointment with the given UUID.
|
Appointment |
getByUUID(UserContext uc,
UUID uuid)
Finds the appointment with the given UUID.
|
Appointment |
moveBookedAppointment(UserContext uc,
IAppointmentMoveBookingParams params)
Moves an appointment to a different time and date.
|
List<EAppointmentBookingError> |
validateAppointments(UserContext uc,
IAppointmentValidateParams params)
Validates whether the given appointments can be created or updated.
|
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, resultTotalCount, serializableList, update, updategetNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, resultTotalCount, update, updategetNamepublic void cancelBookedAppointment(UserContext uc, IAppointmentDeleteBookingParams params) throws AppointmentBookingException
IAppointmentHandlerIAppointmentHandler.validateAppointments(UserContext, IAppointmentValidateParams) first if you have not done so yet.cancelBookedAppointment in interface IAppointmentHandleruc - Current user context for accessing the database.params - Parameters with the appointment to cancel, must be a persisted entity.AppointmentBookingException - When the booking could not be performed. See
AppointmentBookingException.getBookingError() for more details.public Appointment createBookedAppointment(UserContext uc, IAppointmentCreateBookingParams params) throws AppointmentBookingException
IAppointmentHandlerIAppointmentHandler.validateAppointments(UserContext, IAppointmentValidateParams)
first if you have not done so yet.createBookedAppointment in interface IAppointmentHandleruc - Current user context for accessing the database.params - Parameters with the appointment to book, must be a new (non-persisted) entity.AppointmentBookingException - When the booking could not be performed. See
AppointmentBookingException.getBookingError() for more details.public List<Appointment> getAllBy(UserContext uc, IAppointmentQueryParams params)
IAppointmentHandlerIAppointmentHandler.validateAppointments(UserContext, IAppointmentValidateParams) first if you have not done so yet.getAllBy in interface IAppointmentHandleruc - Current user context for accessing the database.params - Restrictions to apply the returned appointments.public Appointment getByUUID(UserContext uc, String uuid)
IAppointmentHandlergetByUUID in interface IAppointmentHandleruc - Current user context for accessing the database.uuid - UUID of an appointment.public Appointment getByUUID(UserContext uc, UUID uuid)
IAppointmentHandlergetByUUID in interface IAppointmentHandleruc - Current user context for accessing the database.uuid - UUID of an appointment.public Appointment moveBookedAppointment(UserContext uc, IAppointmentMoveBookingParams params) throws AppointmentBookingException
IAppointmentHandlermoveBookedAppointment in interface IAppointmentHandleruc - Current user context for accessing the database.params - Parameters with the appointment to move.AppointmentBookingException - When the booking could not be performed. See
AppointmentBookingException.getBookingError() for more details.public List<EAppointmentBookingError> validateAppointments(UserContext uc, IAppointmentValidateParams params)
IAppointmentHandlervalidateAppointments in interface IAppointmentHandleruc - Current user context for accessing the database.params - Parameters with the appointments to validate.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.