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 ofIAppointmentValidationAccessObject
that uses theDaoProvider.APPOINTMENT_DAO
.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description DaoProviderValidationAcessObject(AppointmentTemplate template)
Creates a new access object for appointments of a certainAppointmentTemplate
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? 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 Detail
-
DaoProviderValidationAcessObject
public DaoProviderValidationAcessObject(AppointmentTemplate template)
Creates a new access object for appointments of a certainAppointmentTemplate
.- Parameters:
template
- Appointment template to which returned appointments are restricted.
-
-
Method Detail
-
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.
-
-