Constructor and Description |
---|
AppointmentPersistBuilder(IEntityContext ec,
IFormRequestContext requestCtx,
Map<String,UUID> templateUuidByName)
Creates a new appointment persister for a given form submission.
|
Modifier and Type | Method and Description |
---|---|
Vorgang |
build(Vorgang formRecord)
Processes the appointments, saving them or deleting them as required.
|
public AppointmentPersistBuilder(IEntityContext ec, IFormRequestContext requestCtx, Map<String,UUID> templateUuidByName)
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.public Vorgang build(Vorgang formRecord) throws AppointmentBookingException, PostPersistValidationException
formRecord
- The form record to process for appointments.AppointmentBookingException
- When the appointments could not be processed.PostPersistValidationException
- When the persisted appointment is not valid.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.