Class DefaultFD2AppointmentProvider
java.lang.Object
de.xima.fc.web.common.fd2.provider.DefaultFD2AppointmentProvider
- All Implemented Interfaces:
IFD2AppointmentProvider
,Serializable
Implementation of the
IFD2AppointmentProvider
.- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFD2AppointmentProvider
(Mandant client) Creates a new appointment template provider.DefaultFD2AppointmentProvider
(IFormRenderContext renderCtx) Creates a new appointment template provider. -
Method Summary
Modifier and TypeMethodDescriptioncom.alibaba.fastjson.JSONArray
Returns a list of all available appointment templates.getAppointmentData
(String uuid) boolean
Validates the submitted appointments, checking whether they may be created, moved, or deleted.
-
Constructor Details
-
DefaultFD2AppointmentProvider
Creates a new appointment template provider.- Parameters:
renderCtx
- The current render context of the form being processed.
-
DefaultFD2AppointmentProvider
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 interfaceIFD2AppointmentProvider
- Returns:
- A list of all available appointment templates.
-
getAppointmentData
- Specified by:
getAppointmentData
in interfaceIFD2AppointmentProvider
- Parameters:
uuid
- The UUID of an appointment for which to retrieve its data.- Returns:
- The data of the appointment with the given ID.
-
getAppointmentTemplateData
- Specified by:
getAppointmentTemplateData
in interfaceIFD2AppointmentProvider
- 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
Description copied from interface:IFD2AppointmentProvider
Validates the submitted appointments, checking whether they may be created, moved, or deleted.- Specified by:
validateSubmittedAppointment
in interfaceIFD2AppointmentProvider
- Parameters:
params
- Appointments to validate.- Returns:
- Whether the appointments are valid.
-