Package ome.system
Class SimpleEventContext
- java.lang.Object
-
- ome.system.SimpleEventContext
-
- All Implemented Interfaces:
java.io.Serializable
,EventContext
public class SimpleEventContext extends java.lang.Object implements EventContext, java.io.Serializable
simple, non-thread-safe, serializableEventContext
- Since:
- 3.0
- See Also:
EventContext
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<ome.model.enums.AdminPrivilege>
adminPrivileges
protected java.lang.Long
ceId
protected java.lang.String
ceType
protected java.lang.Long
cgId
protected java.lang.String
cgName
protected java.lang.Long
csId
protected java.lang.String
csName
protected java.lang.Long
csuId
protected java.lang.String
csuName
protected java.lang.Long
cuId
protected java.lang.String
cuName
protected boolean
isAdmin
protected boolean
isReadOnly
protected java.util.List<java.lang.Long>
leaderOfGroups
protected java.util.List<java.lang.Long>
memberOfGroups
protected java.lang.Long
shareId
protected ome.model.internal.Permissions
umask
-
Constructor Summary
Constructors Modifier Constructor Description protected
SimpleEventContext()
Constructor for subclassesSimpleEventContext(EventContext ec)
copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
copy(EventContext ec)
Copies all values directly from the given instance into this instance.java.util.Set<ome.model.enums.AdminPrivilege>
getCurrentAdminPrivileges()
java.lang.Long
getCurrentEventId()
java.lang.String
getCurrentEventType()
java.lang.Long
getCurrentGroupId()
java.lang.String
getCurrentGroupName()
ome.model.internal.Permissions
getCurrentGroupPermissions()
java.lang.Long
getCurrentSessionId()
java.lang.String
getCurrentSessionUuid()
java.lang.Long
getCurrentShareId()
java.lang.Long
getCurrentSudoerId()
java.lang.String
getCurrentSudoerName()
ome.model.internal.Permissions
getCurrentUmask()
java.lang.Long
getCurrentUserId()
java.lang.String
getCurrentUserName()
java.util.List<java.lang.Long>
getLeaderOfGroupsList()
java.util.List<java.lang.Long>
getMemberOfGroupsList()
boolean
isCurrentUserAdmin()
boolean
isReadOnly()
protected void
setGroupPermissions(ome.model.internal.Permissions p)
-
-
-
Field Detail
-
shareId
protected java.lang.Long shareId
-
csId
protected java.lang.Long csId
-
cgId
protected java.lang.Long cgId
-
cuId
protected java.lang.Long cuId
-
csuId
protected java.lang.Long csuId
-
ceId
protected java.lang.Long ceId
-
csName
protected java.lang.String csName
-
cgName
protected java.lang.String cgName
-
cuName
protected java.lang.String cuName
-
csuName
protected java.lang.String csuName
-
ceType
protected java.lang.String ceType
-
isAdmin
protected boolean isAdmin
-
adminPrivileges
protected java.util.Set<ome.model.enums.AdminPrivilege> adminPrivileges
-
isReadOnly
protected boolean isReadOnly
-
memberOfGroups
protected java.util.List<java.lang.Long> memberOfGroups
-
leaderOfGroups
protected java.util.List<java.lang.Long> leaderOfGroups
-
umask
protected ome.model.internal.Permissions umask
-
-
Constructor Detail
-
SimpleEventContext
protected SimpleEventContext()
Constructor for subclasses
-
SimpleEventContext
public SimpleEventContext(EventContext ec)
copy constructor. Makes defensive copies where necessary
-
-
Method Detail
-
copy
protected void copy(EventContext ec)
Copies all values directly from the given instance into this instance. If any ofgetCurrentEventId()
,isCurrentUserAdmin()
,isReadOnly()
, orgetCurrentUmask()
throws an exception, those fields will remain null assuming that theome.security.SecuritySystem
will reload them later.
-
getCurrentShareId
public java.lang.Long getCurrentShareId()
- Specified by:
getCurrentShareId
in interfaceEventContext
-
getCurrentSessionId
public java.lang.Long getCurrentSessionId()
- Specified by:
getCurrentSessionId
in interfaceEventContext
-
getCurrentSessionUuid
public java.lang.String getCurrentSessionUuid()
- Specified by:
getCurrentSessionUuid
in interfaceEventContext
-
getCurrentGroupId
public java.lang.Long getCurrentGroupId()
- Specified by:
getCurrentGroupId
in interfaceEventContext
-
getCurrentGroupName
public java.lang.String getCurrentGroupName()
- Specified by:
getCurrentGroupName
in interfaceEventContext
-
getCurrentUserId
public java.lang.Long getCurrentUserId()
- Specified by:
getCurrentUserId
in interfaceEventContext
-
getCurrentUserName
public java.lang.String getCurrentUserName()
- Specified by:
getCurrentUserName
in interfaceEventContext
-
getCurrentSudoerId
public java.lang.Long getCurrentSudoerId()
- Specified by:
getCurrentSudoerId
in interfaceEventContext
-
getCurrentSudoerName
public java.lang.String getCurrentSudoerName()
- Specified by:
getCurrentSudoerName
in interfaceEventContext
-
isCurrentUserAdmin
public boolean isCurrentUserAdmin()
- Specified by:
isCurrentUserAdmin
in interfaceEventContext
-
getCurrentAdminPrivileges
public java.util.Set<ome.model.enums.AdminPrivilege> getCurrentAdminPrivileges()
- Specified by:
getCurrentAdminPrivileges
in interfaceEventContext
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interfaceEventContext
-
getMemberOfGroupsList
public java.util.List<java.lang.Long> getMemberOfGroupsList()
- Specified by:
getMemberOfGroupsList
in interfaceEventContext
-
getLeaderOfGroupsList
public java.util.List<java.lang.Long> getLeaderOfGroupsList()
- Specified by:
getLeaderOfGroupsList
in interfaceEventContext
-
getCurrentEventId
public java.lang.Long getCurrentEventId()
- Specified by:
getCurrentEventId
in interfaceEventContext
-
getCurrentEventType
public java.lang.String getCurrentEventType()
- Specified by:
getCurrentEventType
in interfaceEventContext
-
getCurrentUmask
public ome.model.internal.Permissions getCurrentUmask()
-
getCurrentGroupPermissions
public ome.model.internal.Permissions getCurrentGroupPermissions()
- Specified by:
getCurrentGroupPermissions
in interfaceEventContext
-
setGroupPermissions
protected void setGroupPermissions(ome.model.internal.Permissions p)
-
-