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
-
public class RequestLogService extends CayenneService
Provides a request log service.- See Also:
RequestLog
-
-
Constructor Summary
Constructors Constructor Description RequestLogService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestLogcreateRequestLog(HttpServletRequest request, Form form, TemplateVersion templateVersion, Submission submission, UserAccount userAccount, String renderMode)Create a request log and register it with the data contextRequestLogcreateRequestLog(HttpServletRequest request, Form form, TemplateVersion templateVersion, Submission submission, UserAccount userAccount, String renderMode, boolean commitChanges)Create a request log and register it with the data contextIAuthenticationServicegetAuthenticationService()Return the authentication service (Spring-injected)voidsetAuthenticationService(IAuthenticationService authenticationService)Set the authentication servicevoidupdateRequestLog(RequestLog requestLog, 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
-
-
-
-
Method Detail
-
getAuthenticationService
public IAuthenticationService getAuthenticationService()
Return the authentication service (Spring-injected)- Returns:
- the authentication service
-
setAuthenticationService
public void setAuthenticationService(IAuthenticationService authenticationService)
Set the authentication service- Parameters:
authenticationService- the new authentication service
-
createRequestLog
public RequestLog createRequestLog(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(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.MODEScommitChanges- commit changes to database- Returns:
- the new request log entry
- Since:
- 4.1.15
-
updateRequestLog
public void updateRequestLog(RequestLog requestLog, 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)
-
-