Package com.avoka.fc.core.servlet
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 Summary
Constructors Constructor Description JsAppUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static RequestLog
createRequestLog(HttpServletRequest request, Form form, TemplateVersion version, Submission submission, Date requestTime)
Create a RequestLog record for the given request.
-
-
-
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
-
-