public interface SessionContext
extends ome.system.EventContext
EventContext
to hold a Session
. This is used by the
SessionManager
to store information in the SessionCache
.Modifier and Type | Interface and Description |
---|---|
static class |
SessionContext.Count
Synchronized counter which can be passed between
SessionContext
instances as they are recreated. |
Modifier and Type | Method and Description |
---|---|
SessionContext.Count |
count()
Returns the
SessionContext.Count instance held by this context. |
ome.model.meta.Session |
getSession() |
java.util.List<java.lang.String> |
getUserRoles() |
void |
setShareId(java.lang.Long shareId)
The Share id is the only mutable bit in the
SessionContext . |
SessionStats |
stats()
Return a
SessionStats implementation for this session. |
getCurrentAdminPrivileges, getCurrentEventId, getCurrentEventType, getCurrentGroupId, getCurrentGroupName, getCurrentGroupPermissions, getCurrentSessionId, getCurrentSessionUuid, getCurrentShareId, getCurrentSudoerId, getCurrentSudoerName, getCurrentUserId, getCurrentUserName, getLeaderOfGroupsList, getMemberOfGroupsList, isCurrentUserAdmin, isReadOnly
ome.model.meta.Session getSession()
java.util.List<java.lang.String> getUserRoles()
void setShareId(java.lang.Long shareId)
SessionContext
.SessionStats stats()
SessionStats
implementation for this session.SessionContext.Count count()
SessionContext.Count
instance held by this context. This may be
shared with other contexts, so that in critical phases as when the context
is being copied, the reference count will be kept in sync.