Class JsAppUtils


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

      • JsAppUtils

        public JsAppUtils()
    • Method Detail

      • createRequestLog

        public static RequestLog createRequestLog​(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​(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