Class SessionContextImpl

  • All Implemented Interfaces:
    SessionContext, ome.system.EventContext

    public class SessionContextImpl
    extends java.lang.Object
    implements SessionContext
    • Constructor Detail

      • SessionContextImpl

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

        public SessionContextImpl​(ome.model.meta.Session session,
                                  java.util.Set<ome.model.enums.AdminPrivilege> adminPrivileges,
                                  java.util.List<java.lang.Long> lGroups,
                                  java.util.List<java.lang.Long> mGroups,
                                  java.util.List<java.lang.String> roles,
                                  SessionStats stats,
                                  ome.system.Roles _roles,
                                  SessionContext previous)
    • Method Detail

      • getCurrentShareId

        public java.lang.Long getCurrentShareId()
        Specified by:
        getCurrentShareId in interface ome.system.EventContext
      • getCurrentSessionId

        public java.lang.Long getCurrentSessionId()
        Specified by:
        getCurrentSessionId in interface ome.system.EventContext
      • getCurrentSessionUuid

        public java.lang.String getCurrentSessionUuid()
        Specified by:
        getCurrentSessionUuid in interface ome.system.EventContext
      • getCurrentEventId

        public java.lang.Long getCurrentEventId()
        Specified by:
        getCurrentEventId in interface ome.system.EventContext
      • getCurrentEventType

        public java.lang.String getCurrentEventType()
        Specified by:
        getCurrentEventType in interface ome.system.EventContext
      • getCurrentGroupId

        public java.lang.Long getCurrentGroupId()
        Specified by:
        getCurrentGroupId in interface ome.system.EventContext
      • getCurrentGroupName

        public java.lang.String getCurrentGroupName()
        Specified by:
        getCurrentGroupName in interface ome.system.EventContext
      • getCurrentGroupPermissions

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

        public java.lang.Long getCurrentUserId()
        Specified by:
        getCurrentUserId in interface ome.system.EventContext
      • getCurrentUserName

        public java.lang.String getCurrentUserName()
        Specified by:
        getCurrentUserName in interface ome.system.EventContext
      • getCurrentSudoerId

        public java.lang.Long getCurrentSudoerId()
        Specified by:
        getCurrentSudoerId in interface ome.system.EventContext
      • getCurrentSudoerName

        public java.lang.String getCurrentSudoerName()
        Specified by:
        getCurrentSudoerName in interface ome.system.EventContext
      • getLeaderOfGroupsList

        public java.util.List<java.lang.Long> getLeaderOfGroupsList()
        Specified by:
        getLeaderOfGroupsList in interface ome.system.EventContext
      • getMemberOfGroupsList

        public java.util.List<java.lang.Long> getMemberOfGroupsList()
        Specified by:
        getMemberOfGroupsList in interface ome.system.EventContext
      • isCurrentUserAdmin

        public boolean isCurrentUserAdmin()
        Specified by:
        isCurrentUserAdmin in interface ome.system.EventContext
      • getCurrentAdminPrivileges

        public java.util.Set<ome.model.enums.AdminPrivilege> getCurrentAdminPrivileges()
        Specified by:
        getCurrentAdminPrivileges in interface ome.system.EventContext
      • isReadOnly

        public boolean isReadOnly()
        Specified by:
        isReadOnly in interface ome.system.EventContext
      • getCurrentUmask

        public ome.model.internal.Permissions getCurrentUmask()