Class JsAppUtils

java.lang.Object
com.avoka.fc.core.servlet.JsAppUtils

public class JsAppUtils extends Object
Provides JS App servlet utility functions.
Since:
18.11.0
  • Constructor Details

    • JsAppUtils

      public JsAppUtils()
  • Method Details

    • createRequestLog

      public static RequestLog createRequestLog(jakarta.servlet.http.HttpServletRequest request, Form form, TemplateVersion version, Submission submission, Date requestTime)
      Create a RequestLog record for the given request.
      Parameters:
      request - the servlet request (required)
      form - the form (required)
      version - the form version (required)
      submission - the submission (optional)
      requestTime - the execute start time (required)
      Returns:
      the new request log record
    • createOrUpdateSubmission

      public static Submission createOrUpdateSubmission(jakarta.servlet.http.HttpServletRequest request, Form form, RequestLog requestLog, Portal portal, Submission submission, Date requestTime)
      Create new submission record, or update an existing existing submission record.
      Parameters:
      request - the servlet request (required)
      form - the form (required)
      requestLog - the request log record (required)
      portal - the request portal record (required)
      submission - the submission record (optional)
      requestTime - the execute start time (required) *
      Returns:
      the new or updated submission record