Class DaoProviderValidationAcessObject

    • Constructor Detail

      • DaoProviderValidationAcessObject

        public DaoProviderValidationAcessObject​(AppointmentTemplate template)
        Creates a new access object for appointments of a certain AppointmentTemplate.
        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 interface IAppointmentValidationAccessObject<IEntityContext>
        Parameters:
        ec - Context for the access object.
        range - Range to consider
        excludedAppointmentIds - 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.