public class SessionContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONNECTION_SESSIONS_CONTEXT |
| Constructor and Description |
|---|
SessionContext() |
| Modifier and Type | Method and Description |
|---|---|
static UserSession |
getSessionContext()
Returns the UserSession associated with the current thread.
|
static boolean |
hasRole(java.lang.String role)
Verifies if the logged in uses associated with the current thread is a given role.
|
static void |
setSessionContext(UserSession userSession)
Associates the supplied UserSession with the current thread.
|
public static final java.lang.String CONNECTION_SESSIONS_CONTEXT
public static final UserSession getSessionContext()
public static final void setSessionContext(UserSession userSession)
public static final boolean hasRole(java.lang.String role)
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.