Package com.avoka.fc.core.service
Class UserAuthEventService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.UserAuthEventService
Provides methods related to UserAuthEvent instances.
- Since:
- 4.3.1
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
The name of the user auth event logger -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
recordUserAuthEvent
(UserAccount userAccount, Portal portal, String type, Date timestamp, jakarta.servlet.http.HttpServletRequest request, String sessionId) Record a user authentication event.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
-
Field Details
-
LOG_NAME_USER_AUTH_EVENT
The name of the user auth event logger- See Also:
-
-
Constructor Details
-
UserAuthEventService
public UserAuthEventService()
-
-
Method Details
-
recordUserAuthEvent
public void recordUserAuthEvent(UserAccount userAccount, Portal portal, String type, Date timestamp, jakarta.servlet.http.HttpServletRequest request, String sessionId) Record a user authentication event. This method performs a database commit.- Parameters:
userAccount
- the user (required)portal
- the portal that the event relates to (required)type
- the event type (one ofUserAuthEvent.EVENT_TYPES
)timestamp
- the time of the event (required)request
- the HTTP servlet request (optional)sessionId
- the HTTP session ID (optional)- Since:
- 4.3.1
-