public interface SessionContext extends 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. |
Session |
getSession() |
List<String> |
getUserRoles() |
void |
setShareId(Long shareId)
The Share id is the only mutable bit in the
SessionContext . |
SessionStats |
stats()
Return a
SessionStats implementation for this session. |
getCurrentEventId, getCurrentEventType, getCurrentGroupId, getCurrentGroupName, getCurrentGroupPermissions, getCurrentSessionId, getCurrentSessionUuid, getCurrentShareId, getCurrentUserId, getCurrentUserName, getLeaderOfGroupsList, getMemberOfGroupsList, isCurrentUserAdmin, isReadOnly
Session getSession()
void setShareId(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.
Version: 5.2.4-ice35-b23
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.