ome.services.sessions
Interface SessionContext

All Superinterfaces:
EventContext
All Known Implementing Classes:
SessionContextImpl

public interface SessionContext
extends EventContext

Extends EventContext to hold a Session. This is used by the SessionManager to store information in the SessionCache.

Since:
3.0-Beta3
Author:
Josh Moore, josh at glencoesoftware.com

Nested Class Summary
static class SessionContext.Count
          Synchronized counter which can be passed between SessionContext instances as they are recreated.
 
Method Summary
 SessionContext.Count count()
          Returns the SessionContext.Count instance held by this context.
 ome.model.meta.Session getSession()
           
 List<String> getUserRoles()
           
 void setShareId(Long shareId)
          The Share id is the only mutable bit in the SessionContext.
 SessionStats stats()
          Return a SessionStats implementation for this session.
 
Methods inherited from interface ome.system.EventContext
getCurrentEventId, getCurrentEventType, getCurrentGroupId, getCurrentGroupName, getCurrentGroupPermissions, getCurrentSessionId, getCurrentSessionUuid, getCurrentShareId, getCurrentUserId, getCurrentUserName, getLeaderOfGroupsList, getMemberOfGroupsList, isCurrentUserAdmin, isReadOnly
 

Method Detail

getSession

ome.model.meta.Session getSession()

getUserRoles

List<String> getUserRoles()

setShareId

void setShareId(Long shareId)
The Share id is the only mutable bit in the SessionContext.


stats

SessionStats stats()
Return a SessionStats implementation for this session.


count

SessionContext.Count count()
Returns the 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.



OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.