Interface WingsSessionHelper
-
- All Implemented Interfaces:
public interface WingsSessionHelper- Since:
2022-02-24
trydofor
-
-
Method Summary
Modifier and Type Method Description longgetUserId(@NotNull() Session session)Get the login UserId or DefaultUserId. booleanisExpired(@NotNull() Session session)Determine if ExpiredKey exists `true` value in `bool` or `String` type by default. SecurityContextgetSecurityContext(@NotNull() Session session)Get the Spring SecurityContext within SPRING_SECURITY_CONTEXT_KEY by default. abstract List<MapSession>findByUserId(Long userId)Get all session of userId abstract booleandropSession(String sessionId)Drop the session by sessionId -
-
Method Detail
-
getUserId
long getUserId(@NotNull() Session session)
Get the login UserId or DefaultUserId.Unknown
-
isExpired
boolean isExpired(@NotNull() Session session)
Determine if ExpiredKey exists `true` value in `bool` or `String` type by default.
-
getSecurityContext
@Nullable() SecurityContext getSecurityContext(@NotNull() Session session)
Get the Spring SecurityContext within SPRING_SECURITY_CONTEXT_KEY by default.
-
findByUserId
@NotNull() abstract List<MapSession> findByUserId(Long userId)
Get all session of userId
-
dropSession
abstract boolean dropSession(String sessionId)
Drop the session by sessionId
-
-
-
-