Package jetbrains.buildServer.auth
Interface SessionModel
-
- All Known Implementing Classes:
SecureSessionModelImpl
,SessionModelImpl
public interface SessionModel
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_ENABLE_LOGOUT_ALL_SESSIONS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addLogoutListener(Consumer<javax.servlet.http.HttpSession> listener)
void
bindUserToSession(SUser user, javax.servlet.http.HttpServletRequest request)
void
bindUserToSession(SUser user, javax.servlet.http.HttpServletRequest request, AuthModule<? extends AuthModuleType> authModule)
Collection<javax.servlet.http.HttpSession>
getUserSessions(long userId)
void
onSessionDestroyed(javax.servlet.http.HttpSession session)
void
terminateAllSessions(javax.servlet.http.HttpServletRequest request, boolean includingSessionInRequest)
void
terminateSession(javax.servlet.http.HttpServletRequest request)
boolean
terminateSessionsByUserId(long userId)
Terminates all sessions of a given user.void
terminateSessionsOfCurrentUser(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)
-
-