public class SessionContextImpl extends java.lang.Object implements SessionContext
SessionContext.Count
Constructor and Description |
---|
SessionContextImpl(Session session,
java.util.List<java.lang.Long> lGroups,
java.util.List<java.lang.Long> mGroups,
java.util.List<java.lang.String> roles,
SessionStats stats,
SessionContext previous) |
SessionContextImpl(Session session,
java.util.Set<AdminPrivilege> adminPrivileges,
java.util.List<java.lang.Long> lGroups,
java.util.List<java.lang.Long> mGroups,
java.util.List<java.lang.String> roles,
SessionStats stats,
Roles _roles,
SessionContext previous) |
Modifier and Type | Method and Description |
---|---|
SessionContext.Count |
count()
Returns the
SessionContext.Count instance held by this context. |
java.util.Set<AdminPrivilege> |
getCurrentAdminPrivileges() |
java.lang.Long |
getCurrentEventId() |
java.lang.String |
getCurrentEventType() |
java.lang.Long |
getCurrentGroupId() |
java.lang.String |
getCurrentGroupName() |
Permissions |
getCurrentGroupPermissions() |
java.lang.Long |
getCurrentSessionId() |
java.lang.String |
getCurrentSessionUuid() |
java.lang.Long |
getCurrentShareId() |
java.lang.Long |
getCurrentSudoerId() |
java.lang.String |
getCurrentSudoerName() |
Permissions |
getCurrentUmask() |
java.lang.Long |
getCurrentUserId() |
java.lang.String |
getCurrentUserName() |
java.util.List<java.lang.Long> |
getLeaderOfGroupsList() |
java.util.List<java.lang.Long> |
getMemberOfGroupsList() |
Session |
getSession() |
java.util.List<java.lang.String> |
getUserRoles() |
boolean |
isCurrentUserAdmin() |
boolean |
isReadOnly() |
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. |
public SessionContextImpl(Session session, java.util.List<java.lang.Long> lGroups, java.util.List<java.lang.Long> mGroups, java.util.List<java.lang.String> roles, SessionStats stats, SessionContext previous)
public SessionContextImpl(Session session, java.util.Set<AdminPrivilege> adminPrivileges, java.util.List<java.lang.Long> lGroups, java.util.List<java.lang.Long> mGroups, java.util.List<java.lang.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 java.util.List<java.lang.String> getUserRoles()
getUserRoles
in interface SessionContext
public void setShareId(java.lang.Long shareId)
SessionContext
SessionContext
.setShareId
in interface SessionContext
public java.lang.Long getCurrentShareId()
getCurrentShareId
in interface EventContext
public java.lang.Long getCurrentSessionId()
getCurrentSessionId
in interface EventContext
public java.lang.String getCurrentSessionUuid()
getCurrentSessionUuid
in interface EventContext
public java.lang.Long getCurrentEventId()
getCurrentEventId
in interface EventContext
public java.lang.String getCurrentEventType()
getCurrentEventType
in interface EventContext
public java.lang.Long getCurrentGroupId()
getCurrentGroupId
in interface EventContext
public java.lang.String getCurrentGroupName()
getCurrentGroupName
in interface EventContext
public Permissions getCurrentGroupPermissions()
getCurrentGroupPermissions
in interface EventContext
public java.lang.Long getCurrentUserId()
getCurrentUserId
in interface EventContext
public java.lang.String getCurrentUserName()
getCurrentUserName
in interface EventContext
public java.lang.Long getCurrentSudoerId()
getCurrentSudoerId
in interface EventContext
public java.lang.String getCurrentSudoerName()
getCurrentSudoerName
in interface EventContext
public java.util.List<java.lang.Long> getLeaderOfGroupsList()
getLeaderOfGroupsList
in interface EventContext
public java.util.List<java.lang.Long> getMemberOfGroupsList()
getMemberOfGroupsList
in interface EventContext
public boolean isCurrentUserAdmin()
isCurrentUserAdmin
in interface EventContext
public java.util.Set<AdminPrivilege> getCurrentAdminPrivileges()
getCurrentAdminPrivileges
in interface EventContext
public boolean isReadOnly()
isReadOnly
in interface EventContext
public Permissions getCurrentUmask()
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.