Class SaveFormService
java.lang.Object
sk.iway.iwcm.components.multistep_form.rest.SaveFormService
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSaveFormService(FormsRepository formsRepository, FormMailService formMailService) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringfilterHtml(String code, String fieldValue) static booleanisFilterHtml(String code) final voidsaveFormAnswers(String formName, FormSettingsEntity formSettings, Integer iLastDocId, javax.servlet.http.HttpServletRequest request) Saves answers of a multi-step form and sends the notification email.
-
Constructor Details
-
SaveFormService
-
-
Method Details
-
saveFormAnswers
public final void saveFormAnswers(String formName, FormSettingsEntity formSettings, Integer iLastDocId, javax.servlet.http.HttpServletRequest request) throws SaveFormException, IOException Saves answers of a multi-step form and sends the notification email.This method performs spam protection, resolves recipients, prepares the
FormsEntity, stores uploaded files, optionally generates a PDF summary, and finally sends the email. If an error occurs andforwardFailis configured informSettings, the thrownSaveFormExceptionwill contain a forward target.- Parameters:
formName- technical name of the form (used for session and persistence)formSettings- form configuration containing recipients, subject and optionsiLastDocId- optional doc ID used to derive subject and context; may benullrequest- current HTTP request (used for session and user context)- Throws:
SaveFormException- when validation fails or sending logic requires forwarding on failureIOException- when an I/O error occurs during file operations
-
isFilterHtml
-
filterHtml
-