Package com.avoka.fc.core.service
Class RequestLogService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.RequestLogService
Provides a request log service.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateRequestLog
(jakarta.servlet.http.HttpServletRequest request, Form form, TemplateVersion templateVersion, Submission submission, UserAccount userAccount, String renderMode) Create a request log and register it with the data contextcreateRequestLog
(jakarta.servlet.http.HttpServletRequest request, Form form, TemplateVersion templateVersion, Submission submission, UserAccount userAccount, String renderMode, boolean commitChanges) Create a request log and register it with the data contextReturn the authentication service (Spring-injected)void
setAuthenticationService
(IAuthenticationService authenticationService) Set the authentication servicevoid
updateRequestLog
(RequestLog requestLog, jakarta.servlet.http.HttpServletRequest request) Update the given RequestLog entity with the provided server request.Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Constructor Details
-
RequestLogService
public RequestLogService()
-
-
Method Details
-
getAuthenticationService
Return the authentication service (Spring-injected)- Returns:
- the authentication service
-
setAuthenticationService
Set the authentication service- Parameters:
authenticationService
- the new authentication service
-
createRequestLog
public RequestLog createRequestLog(jakarta.servlet.http.HttpServletRequest request, Form form, TemplateVersion templateVersion, Submission submission, UserAccount userAccount, String renderMode) Create a request log and register it with the data context- Parameters:
request
- the incoming HttpServletRequestform
- the form which is being requested (required)templateVersion
- the form template version (required)submission
- the submission associated with the request (optional)userAccount
- the user account object (optional)renderMode
- the render mode (one ofRequestLog.MODES
- Returns:
- the new request log entry
-
createRequestLog
public RequestLog createRequestLog(jakarta.servlet.http.HttpServletRequest request, Form form, TemplateVersion templateVersion, Submission submission, UserAccount userAccount, String renderMode, boolean commitChanges) Create a request log and register it with the data context- Parameters:
request
- the incoming HttpServletRequestform
- the form which is being requested (required)templateVersion
- the form template version (required)submission
- the submission associated with the request (optional)userAccount
- the user account object (optional)renderMode
- the render mode (one ofRequestLog.MODES
commitChanges
- commit changes to database- Returns:
- the new request log entry
- Since:
- 4.1.15
-
updateRequestLog
public void updateRequestLog(RequestLog requestLog, jakarta.servlet.http.HttpServletRequest request) Update the given RequestLog entity with the provided server request.- Parameters:
requestLog
- the RequestLog entity to update (required)request
- the server request (required)
-