public class SessionContextImpl extends Object implements SessionContext
SessionContext.Count| Constructor and Description |
|---|
SessionContextImpl(Session session,
List<Long> lGroups,
List<Long> mGroups,
List<String> roles,
SessionStats stats,
Roles _roles,
SessionContext previous) |
SessionContextImpl(Session session,
List<Long> lGroups,
List<Long> mGroups,
List<String> roles,
SessionStats stats,
SessionContext previous) |
| Modifier and Type | Method and Description |
|---|---|
SessionContext.Count |
count()
Returns the
SessionContext.Count instance held by this context. |
Long |
getCurrentEventId() |
String |
getCurrentEventType() |
Long |
getCurrentGroupId() |
String |
getCurrentGroupName() |
Permissions |
getCurrentGroupPermissions() |
Long |
getCurrentSessionId() |
String |
getCurrentSessionUuid() |
Long |
getCurrentShareId() |
Permissions |
getCurrentUmask() |
Long |
getCurrentUserId() |
String |
getCurrentUserName() |
List<Long> |
getLeaderOfGroupsList() |
List<Long> |
getMemberOfGroupsList() |
Session |
getSession() |
List<String> |
getUserRoles() |
boolean |
isCurrentUserAdmin() |
boolean |
isReadOnly() |
void |
setShareId(Long shareId)
The Share id is the only mutable bit in the
SessionContext. |
SessionStats |
stats()
Return a
SessionStats implementation for this session. |
public SessionContextImpl(Session session, List<Long> lGroups, List<Long> mGroups, List<String> roles, SessionStats stats, SessionContext previous)
public SessionContextImpl(Session session, List<Long> lGroups, List<Long> mGroups, List<String> roles, SessionStats stats, Roles _roles, SessionContext previous)
public SessionContext.Count count()
SessionContextSessionContext.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.count in interface SessionContextpublic SessionStats stats()
SessionContextSessionStats implementation for this session.stats in interface SessionContextpublic Session getSession()
getSession in interface SessionContextpublic List<String> getUserRoles()
getUserRoles in interface SessionContextpublic void setShareId(Long shareId)
SessionContextSessionContext.setShareId in interface SessionContextpublic Long getCurrentShareId()
getCurrentShareId in interface EventContextpublic Long getCurrentSessionId()
getCurrentSessionId in interface EventContextpublic String getCurrentSessionUuid()
getCurrentSessionUuid in interface EventContextpublic Long getCurrentEventId()
getCurrentEventId in interface EventContextpublic String getCurrentEventType()
getCurrentEventType in interface EventContextpublic Long getCurrentGroupId()
getCurrentGroupId in interface EventContextpublic String getCurrentGroupName()
getCurrentGroupName in interface EventContextpublic Permissions getCurrentGroupPermissions()
getCurrentGroupPermissions in interface EventContextpublic Long getCurrentUserId()
getCurrentUserId in interface EventContextpublic String getCurrentUserName()
getCurrentUserName in interface EventContextpublic List<Long> getLeaderOfGroupsList()
getLeaderOfGroupsList in interface EventContextpublic List<Long> getMemberOfGroupsList()
getMemberOfGroupsList in interface EventContextpublic boolean isCurrentUserAdmin()
isCurrentUserAdmin in interface EventContextpublic boolean isReadOnly()
isReadOnly in interface EventContextpublic Permissions getCurrentUmask()
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.