public class SubmittedAppointment extends Object implements Serializable
Constructor and Description |
---|
SubmittedAppointment(Appointment appointment)
Creates a new appointment action for deleting an existing appointment.
|
SubmittedAppointment(FieldName fieldName,
UUID templateUuid,
IFormDataAdapter formData,
Map<UUID,Appointment> existingAppointmentsByUuid)
Creates a new appointment action for a form submission.
|
SubmittedAppointment(FieldName fieldName,
UUID templateUuid,
Map<String,List<String[]>> formValuesMap,
Appointment appointment,
AppointmentType appointmentType)
Creates a new appointment action for a form submission.
|
Modifier and Type | Method and Description |
---|---|
UUID |
getAppointmentUuid() |
Appointment |
getExistingAppointment() |
AppointmentType |
getExistingAppointmentType() |
FieldName |
getFieldName() |
Instant |
getSlotId() |
UUID |
getTemplateUuid() |
EAppointmentActionType |
getType()
Analyzes the submitted and existing data and decided which action needs to be taken.
|
UUID |
getTypeUuid() |
String |
toString() |
public SubmittedAppointment(Appointment appointment)
appointment
- The existing appointment that needs to be deleted.public SubmittedAppointment(FieldName fieldName, UUID templateUuid, IFormDataAdapter formData, Map<UUID,Appointment> existingAppointmentsByUuid)
fieldName
- The name of the form field with the appointment widget.templateUuid
- The UUID of the corresponding appointment template.formData
- The form data that was submited.existingAppointmentsByUuid
- A map between the Appointment.getUUID()
and the corresponding
appointments. Must contain only the appointments for the current appointment templatepublic SubmittedAppointment(FieldName fieldName, UUID templateUuid, Map<String,List<String[]>> formValuesMap, Appointment appointment, AppointmentType appointmentType)
fieldName
- The name of the form field with the appointment widget.templateUuid
- The UUID of the corresponding appointment template.formValuesMap
- The form data that was submitted.appointment
- An existing appointment, may be null
.appointmentType
- The appointment type of the given appointment.public UUID getAppointmentUuid()
public Appointment getExistingAppointment()
public AppointmentType getExistingAppointmentType()
Appointment.getAppointmentType()
of the getExistingAppointment()
, if any.public FieldName getFieldName()
public Instant getSlotId()
public UUID getTemplateUuid()
public EAppointmentActionType getType()
public UUID getTypeUuid()
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.