Package ome.services.sessions
Class SessionContextImpl
- java.lang.Object
-
- ome.services.sessions.SessionContextImpl
-
- All Implemented Interfaces:
SessionContext,ome.system.EventContext
public class SessionContextImpl extends java.lang.Object implements SessionContext
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ome.services.sessions.SessionContext
SessionContext.Count
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionContext.Countcount()Returns theSessionContext.Countinstance held by this context.java.util.Set<ome.model.enums.AdminPrivilege>getCurrentAdminPrivileges()java.lang.LonggetCurrentEventId()java.lang.StringgetCurrentEventType()java.lang.LonggetCurrentGroupId()java.lang.StringgetCurrentGroupName()ome.model.internal.PermissionsgetCurrentGroupPermissions()java.lang.LonggetCurrentSessionId()java.lang.StringgetCurrentSessionUuid()java.lang.LonggetCurrentShareId()java.lang.LonggetCurrentSudoerId()java.lang.StringgetCurrentSudoerName()ome.model.internal.PermissionsgetCurrentUmask()java.lang.LonggetCurrentUserId()java.lang.StringgetCurrentUserName()java.util.List<java.lang.Long>getLeaderOfGroupsList()java.util.List<java.lang.Long>getMemberOfGroupsList()ome.model.meta.SessiongetSession()java.util.List<java.lang.String>getUserRoles()booleanisCurrentUserAdmin()booleanisReadOnly()voidsetShareId(java.lang.Long shareId)The Share id is the only mutable bit in theSessionContext.SessionStatsstats()Return aSessionStatsimplementation for this session.
-
-
-
Constructor Detail
-
SessionContextImpl
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)
-
SessionContextImpl
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)
-
-
Method Detail
-
count
public SessionContext.Count count()
Description copied from interface:SessionContextReturns theSessionContext.Countinstance 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.- Specified by:
countin interfaceSessionContext
-
stats
public SessionStats stats()
Description copied from interface:SessionContextReturn aSessionStatsimplementation for this session.- Specified by:
statsin interfaceSessionContext
-
getSession
public ome.model.meta.Session getSession()
- Specified by:
getSessionin interfaceSessionContext
-
getUserRoles
public java.util.List<java.lang.String> getUserRoles()
- Specified by:
getUserRolesin interfaceSessionContext
-
setShareId
public void setShareId(java.lang.Long shareId)
Description copied from interface:SessionContextThe Share id is the only mutable bit in theSessionContext.- Specified by:
setShareIdin interfaceSessionContext
-
getCurrentShareId
public java.lang.Long getCurrentShareId()
- Specified by:
getCurrentShareIdin interfaceome.system.EventContext
-
getCurrentSessionId
public java.lang.Long getCurrentSessionId()
- Specified by:
getCurrentSessionIdin interfaceome.system.EventContext
-
getCurrentSessionUuid
public java.lang.String getCurrentSessionUuid()
- Specified by:
getCurrentSessionUuidin interfaceome.system.EventContext
-
getCurrentEventId
public java.lang.Long getCurrentEventId()
- Specified by:
getCurrentEventIdin interfaceome.system.EventContext
-
getCurrentEventType
public java.lang.String getCurrentEventType()
- Specified by:
getCurrentEventTypein interfaceome.system.EventContext
-
getCurrentGroupId
public java.lang.Long getCurrentGroupId()
- Specified by:
getCurrentGroupIdin interfaceome.system.EventContext
-
getCurrentGroupName
public java.lang.String getCurrentGroupName()
- Specified by:
getCurrentGroupNamein interfaceome.system.EventContext
-
getCurrentGroupPermissions
public ome.model.internal.Permissions getCurrentGroupPermissions()
- Specified by:
getCurrentGroupPermissionsin interfaceome.system.EventContext
-
getCurrentUserId
public java.lang.Long getCurrentUserId()
- Specified by:
getCurrentUserIdin interfaceome.system.EventContext
-
getCurrentUserName
public java.lang.String getCurrentUserName()
- Specified by:
getCurrentUserNamein interfaceome.system.EventContext
-
getCurrentSudoerId
public java.lang.Long getCurrentSudoerId()
- Specified by:
getCurrentSudoerIdin interfaceome.system.EventContext
-
getCurrentSudoerName
public java.lang.String getCurrentSudoerName()
- Specified by:
getCurrentSudoerNamein interfaceome.system.EventContext
-
getLeaderOfGroupsList
public java.util.List<java.lang.Long> getLeaderOfGroupsList()
- Specified by:
getLeaderOfGroupsListin interfaceome.system.EventContext
-
getMemberOfGroupsList
public java.util.List<java.lang.Long> getMemberOfGroupsList()
- Specified by:
getMemberOfGroupsListin interfaceome.system.EventContext
-
isCurrentUserAdmin
public boolean isCurrentUserAdmin()
- Specified by:
isCurrentUserAdminin interfaceome.system.EventContext
-
getCurrentAdminPrivileges
public java.util.Set<ome.model.enums.AdminPrivilege> getCurrentAdminPrivileges()
- Specified by:
getCurrentAdminPrivilegesin interfaceome.system.EventContext
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceome.system.EventContext
-
getCurrentUmask
public ome.model.internal.Permissions getCurrentUmask()
-
-