Package jetbrains.buildServer.auth
Interface SessionModel
-
- All Known Implementing Classes:
SecureSessionModelImpl,SessionModelImpl
public interface SessionModel
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_ENABLE_LOGOUT_ALL_SESSIONS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLogoutListener(Consumer<javax.servlet.http.HttpSession> listener)voidbindUserToSession(SUser user, javax.servlet.http.HttpServletRequest request)voidbindUserToSession(SUser user, javax.servlet.http.HttpServletRequest request, AuthModule<? extends AuthModuleType> authModule)Collection<javax.servlet.http.HttpSession>getUserSessions(long userId)voidonSessionDestroyed(javax.servlet.http.HttpSession session)voidterminateAllSessions(javax.servlet.http.HttpServletRequest request, boolean includingSessionInRequest)voidterminateSession(javax.servlet.http.HttpServletRequest request)booleanterminateSessionsByUserId(long userId)Terminates all sessions of a given user.voidterminateSessionsOfCurrentUser(javax.servlet.http.HttpServletRequest request, boolean includingSessionInRequest)
-
-
-
Field Detail
-
KEY_ENABLE_LOGOUT_ALL_SESSIONS
static final String KEY_ENABLE_LOGOUT_ALL_SESSIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
terminateSession
void terminateSession(@NotNull javax.servlet.http.HttpServletRequest request)
-
terminateSessionsByUserId
boolean terminateSessionsByUserId(long userId)
Terminates all sessions of a given user. Other server nodes are notified via multi-node event.- Parameters:
userId-- Returns:
- true, if termination functionality is enabled, false otherwise.
-
terminateSessionsOfCurrentUser
void terminateSessionsOfCurrentUser(@NotNull javax.servlet.http.HttpServletRequest request, boolean includingSessionInRequest)
-
terminateAllSessions
void terminateAllSessions(@NotNull javax.servlet.http.HttpServletRequest request, boolean includingSessionInRequest)
-
addLogoutListener
void addLogoutListener(@NotNull Consumer<javax.servlet.http.HttpSession> listener)
-
bindUserToSession
void bindUserToSession(@NotNull SUser user, @NotNull javax.servlet.http.HttpServletRequest request)
-
bindUserToSession
void bindUserToSession(@NotNull SUser user, @NotNull javax.servlet.http.HttpServletRequest request, @Nullable AuthModule<? extends AuthModuleType> authModule)
-
onSessionDestroyed
void onSessionDestroyed(@NotNull javax.servlet.http.HttpSession session)
-
getUserSessions
Collection<javax.servlet.http.HttpSession> getUserSessions(long userId)
-
-