Interface SessionContext

  • All Superinterfaces:
    ome.system.EventContext
    All Known Implementing Classes:
    SessionContextImpl

    public interface SessionContext
    extends ome.system.EventContext
    Extends EventContext to hold a Session. This is used by the SessionManager to store information in the SessionCache.
    Since:
    3.0-Beta3
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  SessionContext.Count
      Synchronized counter which can be passed between SessionContext instances as they are recreated.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      SessionContext.Count count()
      Returns the SessionContext.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 the SessionContext.
      SessionStats stats()
      Return a SessionStats 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 the SessionContext.
      • 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.