public class SessionContextImpl extends java.lang.Object implements SessionContext
SessionContext.Count
Constructor and Description |
---|
SessionContextImpl(ome.model.meta.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(ome.model.meta.Session session,
java.util.Set<ome.model.enums.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,
ome.system.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<ome.model.enums.AdminPrivilege> |
getCurrentAdminPrivileges() |
java.lang.Long |
getCurrentEventId() |
java.lang.String |
getCurrentEventType() |
java.lang.Long |
getCurrentGroupId() |
java.lang.String |
getCurrentGroupName() |
ome.model.internal.Permissions |
getCurrentGroupPermissions() |
java.lang.Long |
getCurrentSessionId() |
java.lang.String |
getCurrentSessionUuid() |
java.lang.Long |
getCurrentShareId() |
java.lang.Long |
getCurrentSudoerId() |
java.lang.String |
getCurrentSudoerName() |
ome.model.internal.Permissions |
getCurrentUmask() |
java.lang.Long |
getCurrentUserId() |
java.lang.String |
getCurrentUserName() |
java.util.List<java.lang.Long> |
getLeaderOfGroupsList() |
java.util.List<java.lang.Long> |
getMemberOfGroupsList() |
ome.model.meta.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(ome.model.meta.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(ome.model.meta.Session session, java.util.Set<ome.model.enums.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, ome.system.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 ome.model.meta.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 ome.system.EventContext
public java.lang.Long getCurrentSessionId()
getCurrentSessionId
in interface ome.system.EventContext
public java.lang.String getCurrentSessionUuid()
getCurrentSessionUuid
in interface ome.system.EventContext
public java.lang.Long getCurrentEventId()
getCurrentEventId
in interface ome.system.EventContext
public java.lang.String getCurrentEventType()
getCurrentEventType
in interface ome.system.EventContext
public java.lang.Long getCurrentGroupId()
getCurrentGroupId
in interface ome.system.EventContext
public java.lang.String getCurrentGroupName()
getCurrentGroupName
in interface ome.system.EventContext
public ome.model.internal.Permissions getCurrentGroupPermissions()
getCurrentGroupPermissions
in interface ome.system.EventContext
public java.lang.Long getCurrentUserId()
getCurrentUserId
in interface ome.system.EventContext
public java.lang.String getCurrentUserName()
getCurrentUserName
in interface ome.system.EventContext
public java.lang.Long getCurrentSudoerId()
getCurrentSudoerId
in interface ome.system.EventContext
public java.lang.String getCurrentSudoerName()
getCurrentSudoerName
in interface ome.system.EventContext
public java.util.List<java.lang.Long> getLeaderOfGroupsList()
getLeaderOfGroupsList
in interface ome.system.EventContext
public java.util.List<java.lang.Long> getMemberOfGroupsList()
getMemberOfGroupsList
in interface ome.system.EventContext
public boolean isCurrentUserAdmin()
isCurrentUserAdmin
in interface ome.system.EventContext
public java.util.Set<ome.model.enums.AdminPrivilege> getCurrentAdminPrivileges()
getCurrentAdminPrivileges
in interface ome.system.EventContext
public boolean isReadOnly()
isReadOnly
in interface ome.system.EventContext
public ome.model.internal.Permissions getCurrentUmask()