Package de.xima.fc.appointment
Class DaoProviderValidationAcessObject
java.lang.Object
de.xima.fc.appointment.DaoProviderValidationAcessObject
- All Implemented Interfaces:
IAppointmentValidationAccessObject<IEntityContext>
public class DaoProviderValidationAcessObject
extends Object
implements IAppointmentValidationAccessObject<IEntityContext>
Implementation of
IAppointmentValidationAccessObject
that uses the DaoProvider.APPOINTMENT_DAO
.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new access object for appointments of a certainAppointmentTemplate
. -
Method Summary
Modifier and TypeMethodDescriptionList<? extends IAppointmentRangeView>
count
(IEntityContext ec, 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.
-
Constructor Details
-
DaoProviderValidationAcessObject
Creates a new access object for appointments of a certainAppointmentTemplate
.- Parameters:
template
- Appointment template to which returned appointments are restricted.
-
-
Method Details
-
count
public List<? extends IAppointmentRangeView> count(IEntityContext ec, com.google.common.collect.Range<Instant> range, Iterable<Long> excludedAppointmentIds, boolean includePartiallyInRange, boolean includeCanceled) Description copied from interface:IAppointmentValidationAccessObject
Counts the number of appointments in the given range and with the given status. Excludes the given appointments.- Specified by:
count
in interfaceIAppointmentValidationAccessObject<IEntityContext>
- Parameters:
ec
- 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.
-