Package ome.services.sessions
Interface SessionContext
-
- All Superinterfaces:
ome.system.EventContext
- All Known Implementing Classes:
SessionContextImpl
public interface SessionContext extends ome.system.EventContext
ExtendsEventContext
to hold aSession
. This is used by theSessionManager
to store information in theSessionCache
.- Since:
- 3.0-Beta3
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SessionContext.Count
Synchronized counter which can be passed betweenSessionContext
instances as they are recreated.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SessionContext.Count
count()
Returns theSessionContext.Count
instance held by this context.ome.model.meta.Session
getSession()
java.util.List<java.lang.String>
getUserRoles()
void
setShareId(java.lang.Long shareId)
The Share id is the only mutable bit in theSessionContext
.SessionStats
stats()
Return aSessionStats
implementation for this session.-
Methods inherited from interface ome.system.EventContext
getCurrentAdminPrivileges, getCurrentEventId, getCurrentEventType, getCurrentGroupId, getCurrentGroupName, getCurrentGroupPermissions, getCurrentSessionId, getCurrentSessionUuid, getCurrentShareId, getCurrentSudoerId, getCurrentSudoerName, getCurrentUserId, getCurrentUserName, getLeaderOfGroupsList, getMemberOfGroupsList, isCurrentUserAdmin, isReadOnly
-
-
-
-
Method Detail
-
getSession
ome.model.meta.Session getSession()
-
getUserRoles
java.util.List<java.lang.String> getUserRoles()
-
setShareId
void setShareId(java.lang.Long shareId)
The Share id is the only mutable bit in theSessionContext
.
-
stats
SessionStats stats()
Return aSessionStats
implementation for this session.
-
count
SessionContext.Count count()
Returns theSessionContext.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.
-
-