Package de.xima.fc.form.appointment
Class AppointmentPersistBuilder
- java.lang.Object
 - 
- de.xima.fc.form.appointment.AppointmentPersistBuilder
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AppointmentPersistBuilder(IEntityContext ec, IFormRequestContext requestCtx, Map<String,UUID> templateUuidByName)Creates a new appointment persister for a given form submission. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vorgangbuild(Vorgang formRecord)Processes the appointments, saving them or deleting them as required. 
 - 
 
- 
- 
Constructor Detail
- 
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 Detail
- 
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.
 
 - 
 
 -