Package de.xima.fc.form.appointment
Class AppointmentPersistBuilder
java.lang.Object
de.xima.fc.form.appointment.AppointmentPersistBuilder
Builder for persisting appointments of a
Vorgang
.- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionAppointmentPersistBuilder
(IEntityContext ec, IFormRequestContext requestCtx, Map<String, UUID> templateUuidByName) Creates a new appointment persister for a given form submission. -
Method Summary
-
Constructor Details
-
AppointmentPersistBuilder
public AppointmentPersistBuilder(IEntityContext ec, IFormRequestContext requestCtx, Map<String, UUID> templateUuidByName) Creates a new appointment persister for a given form submission.- Parameters:
ec
- Current entity context for interacting with the database.requestCtx
- The current request context that was used to submit the form.templateUuidByName
- Map between the name of an appointment form field and the selected appointment template.
-
-
Method Details
-
build
public Vorgang build(Vorgang formRecord) throws AppointmentBookingException, PostPersistValidationException Processes the appointments, saving them or deleting them as required.- Parameters:
formRecord
- The form record to process for appointments.- Returns:
- The new form record entity to be used.
- Throws:
AppointmentBookingException
- When the appointments could not be processed.PostPersistValidationException
- When the persisted appointment is not valid.
-