ome.services.sessions
Class SessionContextImpl

java.lang.Object
  extended by ome.services.sessions.SessionContextImpl
All Implemented Interfaces:
SessionContext, EventContext

public class SessionContextImpl
extends Object
implements SessionContext


Nested Class Summary
 
Nested classes/interfaces inherited from interface ome.services.sessions.SessionContext
SessionContext.Count
 
Constructor Summary
SessionContextImpl(ome.model.meta.Session session, List<Long> lGroups, List<Long> mGroups, List<String> roles, SessionStats stats, Roles _roles, SessionContext previous)
           
SessionContextImpl(ome.model.meta.Session session, List<Long> lGroups, List<Long> mGroups, List<String> roles, SessionStats stats, SessionContext previous)
           
 
Method Summary
 SessionContext.Count count()
          Returns the SessionContext.Count instance held by this context.
 Long getCurrentEventId()
           
 String getCurrentEventType()
           
 Long getCurrentGroupId()
           
 String getCurrentGroupName()
           
 ome.model.internal.Permissions getCurrentGroupPermissions()
           
 Long getCurrentSessionId()
           
 String getCurrentSessionUuid()
           
 Long getCurrentShareId()
           
 ome.model.internal.Permissions getCurrentUmask()
           
 Long getCurrentUserId()
           
 String getCurrentUserName()
           
 List<Long> getLeaderOfGroupsList()
           
 List<Long> getMemberOfGroupsList()
           
 ome.model.meta.Session getSession()
           
 List<String> getUserRoles()
           
 boolean isCurrentUserAdmin()
           
 boolean isReadOnly()
           
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionContextImpl

public SessionContextImpl(ome.model.meta.Session session,
                          List<Long> lGroups,
                          List<Long> mGroups,
                          List<String> roles,
                          SessionStats stats,
                          SessionContext previous)

SessionContextImpl

public SessionContextImpl(ome.model.meta.Session session,
                          List<Long> lGroups,
                          List<Long> mGroups,
                          List<String> roles,
                          SessionStats stats,
                          Roles _roles,
                          SessionContext previous)
Method Detail

count

public SessionContext.Count count()
Description copied from interface: SessionContext
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.

Specified by:
count in interface SessionContext

stats

public SessionStats stats()
Description copied from interface: SessionContext
Return a SessionStats implementation for this session.

Specified by:
stats in interface SessionContext

getSession

public ome.model.meta.Session getSession()
Specified by:
getSession in interface SessionContext

getUserRoles

public List<String> getUserRoles()
Specified by:
getUserRoles in interface SessionContext

setShareId

public void setShareId(Long shareId)
Description copied from interface: SessionContext
The Share id is the only mutable bit in the SessionContext.

Specified by:
setShareId in interface SessionContext

getCurrentShareId

public Long getCurrentShareId()
Specified by:
getCurrentShareId in interface EventContext

getCurrentSessionId

public Long getCurrentSessionId()
Specified by:
getCurrentSessionId in interface EventContext

getCurrentSessionUuid

public String getCurrentSessionUuid()
Specified by:
getCurrentSessionUuid in interface EventContext

getCurrentEventId

public Long getCurrentEventId()
Specified by:
getCurrentEventId in interface EventContext

getCurrentEventType

public String getCurrentEventType()
Specified by:
getCurrentEventType in interface EventContext

getCurrentGroupId

public Long getCurrentGroupId()
Specified by:
getCurrentGroupId in interface EventContext

getCurrentGroupName

public String getCurrentGroupName()
Specified by:
getCurrentGroupName in interface EventContext

getCurrentGroupPermissions

public ome.model.internal.Permissions getCurrentGroupPermissions()
Specified by:
getCurrentGroupPermissions in interface EventContext

getCurrentUserId

public Long getCurrentUserId()
Specified by:
getCurrentUserId in interface EventContext

getCurrentUserName

public String getCurrentUserName()
Specified by:
getCurrentUserName in interface EventContext

getLeaderOfGroupsList

public List<Long> getLeaderOfGroupsList()
Specified by:
getLeaderOfGroupsList in interface EventContext

getMemberOfGroupsList

public List<Long> getMemberOfGroupsList()
Specified by:
getMemberOfGroupsList in interface EventContext

isCurrentUserAdmin

public boolean isCurrentUserAdmin()
Specified by:
isCurrentUserAdmin in interface EventContext

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface EventContext

getCurrentUmask

public ome.model.internal.Permissions getCurrentUmask()


OmeroJava Api

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

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