Class DefaultFD2AppointmentProvider

    • Constructor Detail

      • DefaultFD2AppointmentProvider

        public DefaultFD2AppointmentProvider​(IFormRenderContext renderCtx)
        Creates a new appointment template provider.
        Parameters:
        renderCtx - The current render context of the form being processed.
      • DefaultFD2AppointmentProvider

        public DefaultFD2AppointmentProvider​(Mandant client)
        Creates a new appointment template provider.
        Parameters:
        client - The current client that owns the form being processed.
    • Method Detail

      • createAppointmentTemplateJSON

        public com.alibaba.fastjson.JSONArray createAppointmentTemplateJSON()
        Description copied from interface: IFD2AppointmentProvider
        Returns a list of all available appointment templates. This is used in the designer to show the list of available templates when the appointment form item is configured.
        • id: (number) The database ID of the appointment template
        • name: (string) The name of the appointment template.
        • maximumAdvanceBooking: (number) How many weeks in advance an appointment may be booked.
        • minimumBookingNotice: (number) How many hours must lie before slot so that it may be booked.
        • uuid: (string) The UUID of the appointment template
        Specified by:
        createAppointmentTemplateJSON in interface IFD2AppointmentProvider
        Returns:
        A list of all available appointment templates.