Class SaveFormService

java.lang.Object
sk.iway.iwcm.components.multistep_form.rest.SaveFormService

@Service public class SaveFormService extends Object
  • Constructor Details

  • 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 and forwardFail is configured in formSettings, the thrown SaveFormException will contain a forward target.

      Parameters:
      formName - technical name of the form (used for session and persistence)
      formSettings - form configuration containing recipients, subject and options
      iLastDocId - optional doc ID used to derive subject and context; may be null
      request - current HTTP request (used for session and user context)
      Throws:
      SaveFormException - when validation fails or sending logic requires forwarding on failure
      IOException - when an I/O error occurs during file operations
    • isFilterHtml

      public static boolean isFilterHtml(String code)
    • filterHtml

      public static String filterHtml(String code, String fieldValue)