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 theIFD2AppointmentProvider.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultFD2AppointmentProvider(Mandant client)Creates a new appointment template provider.DefaultFD2AppointmentProvider(IFormRenderContext renderCtx)Creates a new appointment template provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.alibaba.fastjson.JSONArraycreateAppointmentTemplateJSON()Returns a list of all available appointment templates.IAppointmentDatagetAppointmentData(String uuid)booleanvalidateSubmittedAppointment(IXGlobalValidationParams params)Validates the submitted appointments, checking whether they may be created, moved, or deleted.
-
-
-
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:IFD2AppointmentProviderReturns 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:
createAppointmentTemplateJSONin interfaceIFD2AppointmentProvider- Returns:
- A list of all available appointment templates.
-
getAppointmentData
public IAppointmentData getAppointmentData(String uuid)
- Specified by:
getAppointmentDatain interfaceIFD2AppointmentProvider- Parameters:
uuid- The UUID of an appointment for which to retrieve its data.- Returns:
- The data of the appointment with the given ID.
-
validateSubmittedAppointment
public boolean validateSubmittedAppointment(IXGlobalValidationParams params)
Description copied from interface:IFD2AppointmentProviderValidates the submitted appointments, checking whether they may be created, moved, or deleted.- Specified by:
validateSubmittedAppointmentin interfaceIFD2AppointmentProvider- Parameters:
params- Appointments to validate.- Returns:
- Whether the appointments are valid.
-
-