Class AppointmentTemplateAPI

    • Constructor Detail

      • AppointmentTemplateAPI

        public AppointmentTemplateAPI()
    • Method Detail

      • executeFreeSlotQuery

        public IAppointmentFreeSlotQueryResult executeFreeSlotQuery​(UserContext uc,
                                                                    IAppointmentFreeSlotQueryParams params)
        Finds all available date slots for the given appointment template, in the given month of the year.
        Parameters:
        uc - Current user context.
        params - Parameters for the appointment query.
        Returns:
        All free, available slots for the given parameters.
      • getAllByClient

        public List<AppointmentTemplate> getAllByClient​(UserContext uc,
                                                        Mandant currentClient)
        Finds all available appointment templates of the given client.
        Parameters:
        uc - Current user context.
        currentClient - The client for which to find the appointments.
        Returns:
        All appointment templates of the given client.
      • getByUUID

        public AppointmentTemplate getByUUID​(UserContext uc,
                                             Mandant client,
                                             String uuid)
        Finds the appointment template with the given UUID.
        Parameters:
        uc - Current user context for accessing the database.
        client - The client for which to find the templates.
        uuid - UUID of an appointment.
        Returns:
        The appointment with the given UUID.
      • getByUUID

        public AppointmentTemplate getByUUID​(UserContext uc,
                                             Mandant client,
                                             UUID uuid)
        Finds the appointment template with the given UUID.
        Parameters:
        uc - Current user context for accessing the database.
        client - The client for which to find the templates.
        uuid - UUID of an appointment.
        Returns:
        The appointment with the given UUID.