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

Method Summary
 int decrement()
          Decrement the current reference count and return the new value atomically.
 ome.model.meta.Session getSession()
           
 List<String> getUserRoles()
           
 int increment()
          Increment the current reference count and return the new value atomically.
 int refCount()
          Return the current number of references which this session is aware of.
 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.


refCount

int refCount()
Return the current number of references which this session is aware of.


increment

int increment()
Increment the current reference count and return the new value atomically.


decrement

int decrement()
Decrement the current reference count and return the new value atomically.



OmeroJava Api

Version: Beta-4.2.0-r7571-b29

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