Interface IAppointmentIcalQueryAccessObject<Context>
- Type Parameters:
Context- Type of the context passed to the methods. Such as an entity manager.
- All Known Implementing Classes:
DaoProviderIcalQueryAccessObject
public interface IAppointmentIcalQueryAccessObject<Context>
Interface that abstracts the database interaction required by the ical servlet, to allow for easier mocking during
testing.
- Since:
- 6.6.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptiongetAppointmentsBy(Context context, Mandant client, AppointmentTemplate template, com.google.common.collect.Range<Instant> range, boolean includePartiallyInRange) Finds all appointments matching the given criteria.getClientBy(Context context, UUID uuid) Finds a client by its UUID.getTemplateBy(Context context, Mandant client, UUID uuid) Finds a template by its client and UUID.
-
Method Details
-
getAppointmentsBy
List<Appointment> getAppointmentsBy(Context context, Mandant client, AppointmentTemplate template, com.google.common.collect.Range<Instant> range, boolean includePartiallyInRange) Finds all appointments matching the given criteria.- Parameters:
context- Context for the access object.client- The client to which to limit the returned appointments.template- Template to which to limit the returned appointments.range- Temporal range to which to limit the returned appointments.includePartiallyInRange- Iftrue, include appointments that only partially overlap the given range.- Returns:
- All appointments matching the given criteria.
-
getClientBy
Finds a client by its UUID.- Parameters:
context- Context for the access object.uuid- UUID of the client.- Returns:
- The client with the given UUID, or
nullif no such client exists.
-
getTemplateBy
Finds a template by its client and UUID.- Parameters:
context- Context for the access object.uuid- UUID of the template.client- Client of the template.- Returns:
- The template belong to the given client and having the given UUID, or
nullif no such template exists.
-