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, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, update
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
getName
public void cancelBookedAppointment(UserContext uc, IAppointmentDeleteBookingParams params) throws AppointmentBookingException
IAppointmentHandler
IAppointmentHandler.validateAppointments(UserContext, IAppointmentValidateParams)
first if you have not done so yet.cancelBookedAppointment
in interface IAppointmentHandler
uc
- 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
IAppointmentHandler
IAppointmentHandler.validateAppointments(UserContext, IAppointmentValidateParams)
first if you have not done so yet.createBookedAppointment
in interface IAppointmentHandler
uc
- 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)
IAppointmentHandler
IAppointmentHandler.validateAppointments(UserContext, IAppointmentValidateParams)
first if you have not done so yet.getAllBy
in interface IAppointmentHandler
uc
- Current user context for accessing the database.params
- Restrictions to apply the returned appointments.public Appointment getByUUID(UserContext uc, String uuid)
IAppointmentHandler
getByUUID
in interface IAppointmentHandler
uc
- Current user context for accessing the database.uuid
- UUID of an appointment.public Appointment getByUUID(UserContext uc, UUID uuid)
IAppointmentHandler
getByUUID
in interface IAppointmentHandler
uc
- Current user context for accessing the database.uuid
- UUID of an appointment.public Appointment moveBookedAppointment(UserContext uc, IAppointmentMoveBookingParams params) throws AppointmentBookingException
IAppointmentHandler
moveBookedAppointment
in interface IAppointmentHandler
uc
- 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)
IAppointmentHandler
validateAppointments
in interface IAppointmentHandler
uc
- Current user context for accessing the database.params
- Parameters with the appointments to validate.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.