Interface IAppointmentValidationAccessObject<Context>
-
- Type Parameters:
Context- Type of the context passed to the methods. Such as an entity manager.
- All Known Implementing Classes:
DaoProviderValidationAcessObject
public interface IAppointmentValidationAccessObject<Context>Interface that abstracts the database interaction required by the validation process of the appointment booking handler, to allow for easier mocking during testing.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<? extends IAppointmentRangeView>count(Context context, com.google.common.collect.Range<Instant> range, Iterable<Long> excludedAppointmentIds, boolean includePartiallyInRange, boolean includeCanceled)Counts the number of appointments in the given range and with the given status.
-
-
-
Method Detail
-
count
List<? extends IAppointmentRangeView> count(Context context, com.google.common.collect.Range<Instant> range, Iterable<Long> excludedAppointmentIds, boolean includePartiallyInRange, boolean includeCanceled)
Counts the number of appointments in the given range and with the given status. Excludes the given appointments.- Parameters:
context- Context for the access object.range- Range to considerexcludedAppointmentIds- Appointments to exclude.includePartiallyInRange- Whether to include appointments only partially in the given range.includeCanceled- Whether cancelled appointments should be included.- Returns:
- All appointments with the given parameters.
-
-