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()
SessionContext
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.count
in interface SessionContext
public SessionStats stats()
SessionContext
SessionStats
implementation for this session.stats
in interface SessionContext
public Session getSession()
getSession
in interface SessionContext
public List<String> getUserRoles()
getUserRoles
in interface SessionContext
public void setShareId(Long shareId)
SessionContext
SessionContext
.setShareId
in interface SessionContext
public Long getCurrentShareId()
getCurrentShareId
in interface EventContext
public Long getCurrentSessionId()
getCurrentSessionId
in interface EventContext
public String getCurrentSessionUuid()
getCurrentSessionUuid
in interface EventContext
public Long getCurrentEventId()
getCurrentEventId
in interface EventContext
public String getCurrentEventType()
getCurrentEventType
in interface EventContext
public Long getCurrentGroupId()
getCurrentGroupId
in interface EventContext
public String getCurrentGroupName()
getCurrentGroupName
in interface EventContext
public Permissions getCurrentGroupPermissions()
getCurrentGroupPermissions
in interface EventContext
public Long getCurrentUserId()
getCurrentUserId
in interface EventContext
public String getCurrentUserName()
getCurrentUserName
in interface EventContext
public List<Long> getLeaderOfGroupsList()
getLeaderOfGroupsList
in interface EventContext
public List<Long> getMemberOfGroupsList()
getMemberOfGroupsList
in interface EventContext
public boolean isCurrentUserAdmin()
isCurrentUserAdmin
in interface EventContext
public boolean isReadOnly()
isReadOnly
in interface EventContext
public Permissions getCurrentUmask()
Version: 5.2.0-ice35-b12
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.