public interface UserSessionLog
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
SessionLogEntry |
createSessionLogRecord(UserSession userSession,
SessionAction action,
java.util.Map<java.lang.String,java.lang.Object> params)
Create log entry for session with custom params.
|
SessionLogEntry |
createSessionLogRecord(UserSession userSession,
SessionAction action,
UserSession substitutedSession,
java.util.Map<java.lang.String,java.lang.Object> params)
Create log entry for session with custom params.
|
java.util.List<SessionLogEntry> |
getAllSessionLogRecords(java.util.UUID userSessionId)
Get all session log records.
|
SessionLogEntry |
getLastSessionLogRecord(java.util.UUID userSessionId)
Get latest session log record.
|
SessionLogEntry |
updateSessionLogRecord(UserSession userSession,
SessionAction action)
Updates params on provided session log record.
|
static final java.lang.String NAME
@Nullable SessionLogEntry createSessionLogRecord(UserSession userSession, SessionAction action, java.util.Map<java.lang.String,java.lang.Object> params)
userSession
- log entry is created for this sessionaction
- session action, like login, logout, etcparams
- additional params for log entry, like client's address and other info.
Use id property of SessionParams entry to pass in params map.SessionParams
@Nullable SessionLogEntry createSessionLogRecord(UserSession userSession, SessionAction action, UserSession substitutedSession, java.util.Map<java.lang.String,java.lang.Object> params)
userSession
- log entry is created for this sessionaction
- session action, like login, logout, etcsubstitutedSession
- session that was substituted by new session from userSession
paramparams
- additional params for log entry, like client's address and other info.
Use id property of SessionParams entry to pass in params mapSessionParams
@Nullable SessionLogEntry updateSessionLogRecord(UserSession userSession, SessionAction action)
userSession
- update log record for this sessionaction
- last session actionSessionLogEntry getLastSessionLogRecord(java.util.UUID userSessionId)
userSessionId
- id of user sessionjava.util.List<SessionLogEntry> getAllSessionLogRecords(java.util.UUID userSessionId)
userSessionId
- id of user sessionstartedTs
asc