Class DefaultFD2AppointmentProvider

java.lang.Object
de.xima.fc.web.common.fd2.provider.DefaultFD2AppointmentProvider
All Implemented Interfaces:
IFD2AppointmentProvider, Serializable

public class DefaultFD2AppointmentProvider extends Object implements IFD2AppointmentProvider
Implementation of the IFD2AppointmentProvider.
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • 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 Details

    • 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.
    • getAppointmentData

      public IAppointmentData getAppointmentData(String uuid)
      Specified by:
      getAppointmentData in interface IFD2AppointmentProvider
      Parameters:
      uuid - The UUID of an appointment for which to retrieve its data.
      Returns:
      The data of the appointment with the given ID.
    • getAppointmentTemplateData

      public IAppointmentTemplateData getAppointmentTemplateData(String uuid)
      Specified by:
      getAppointmentTemplateData in interface IFD2AppointmentProvider
      Parameters:
      uuid - The UUID of an appointment template for which to retrieve its data.
      Returns:
      The data of the appointment template with the given ID.
    • validateSubmittedAppointment

      public boolean validateSubmittedAppointment(IXGlobalValidationParams params)
      Description copied from interface: IFD2AppointmentProvider
      Validates the submitted appointments, checking whether they may be created, moved, or deleted.
      Specified by:
      validateSubmittedAppointment in interface IFD2AppointmentProvider
      Parameters:
      params - Appointments to validate.
      Returns:
      Whether the appointments are valid.