public class AppointmentAPI extends AEntityAPI<Appointment>
Appointment entities.entityClass| Constructor and Description | 
|---|
AppointmentAPI()  | 
| 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 queryParams)
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, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, updategetHandlerProviderpublic void cancelBookedAppointment(UserContext uc, IAppointmentDeleteBookingParams params) throws AppointmentBookingException
validateAppointments(UserContext, IAppointmentValidateParams) first if you have not done so yet.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
validateAppointments(UserContext, IAppointmentValidateParams)
 first if you have not done so yet.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 queryParams)
uc - Current user context for accessing the database.queryParams - Restrictions to apply the returned appointments.public Appointment getByUUID(UserContext uc, String uuid)
uc - Current user context for accessing the database.uuid - UUID of an appointment.public Appointment getByUUID(UserContext uc, UUID uuid)
uc - Current user context for accessing the database.uuid - UUID of an appointment.public Appointment moveBookedAppointment(UserContext uc, IAppointmentMoveBookingParams params) throws AppointmentBookingException
validateAppointments(UserContext, IAppointmentValidateParams) first if you have not done so yet.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)
uc - Current user context for accessing the database.params - Parameters with the appointments to validate.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.