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>adminPrivilegesprotected java.lang.LongceIdprotected java.lang.StringceTypeprotected java.lang.LongcgIdprotected java.lang.StringcgNameprotected java.lang.LongcsIdprotected java.lang.StringcsNameprotected java.lang.LongcsuIdprotected java.lang.StringcsuNameprotected java.lang.LongcuIdprotected java.lang.StringcuNameprotected booleanisAdminprotected booleanisReadOnlyprotected java.util.List<java.lang.Long>leaderOfGroupsprotected java.util.List<java.lang.Long>memberOfGroupsprotected java.lang.LongshareIdprotected ome.model.internal.Permissionsumask
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleEventContext()Constructor for subclassesSimpleEventContext(EventContext ec)copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopy(EventContext ec)Copies all values directly from the given instance into this instance.java.util.Set<ome.model.enums.AdminPrivilege>getCurrentAdminPrivileges()java.lang.LonggetCurrentEventId()java.lang.StringgetCurrentEventType()java.lang.LonggetCurrentGroupId()java.lang.StringgetCurrentGroupName()ome.model.internal.PermissionsgetCurrentGroupPermissions()java.lang.LonggetCurrentSessionId()java.lang.StringgetCurrentSessionUuid()java.lang.LonggetCurrentShareId()java.lang.LonggetCurrentSudoerId()java.lang.StringgetCurrentSudoerName()ome.model.internal.PermissionsgetCurrentUmask()java.lang.LonggetCurrentUserId()java.lang.StringgetCurrentUserName()java.util.List<java.lang.Long>getLeaderOfGroupsList()java.util.List<java.lang.Long>getMemberOfGroupsList()booleanisCurrentUserAdmin()booleanisReadOnly()protected voidsetGroupPermissions(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.SecuritySystemwill reload them later.
-
getCurrentShareId
public java.lang.Long getCurrentShareId()
- Specified by:
getCurrentShareIdin interfaceEventContext
-
getCurrentSessionId
public java.lang.Long getCurrentSessionId()
- Specified by:
getCurrentSessionIdin interfaceEventContext
-
getCurrentSessionUuid
public java.lang.String getCurrentSessionUuid()
- Specified by:
getCurrentSessionUuidin interfaceEventContext
-
getCurrentGroupId
public java.lang.Long getCurrentGroupId()
- Specified by:
getCurrentGroupIdin interfaceEventContext
-
getCurrentGroupName
public java.lang.String getCurrentGroupName()
- Specified by:
getCurrentGroupNamein interfaceEventContext
-
getCurrentUserId
public java.lang.Long getCurrentUserId()
- Specified by:
getCurrentUserIdin interfaceEventContext
-
getCurrentUserName
public java.lang.String getCurrentUserName()
- Specified by:
getCurrentUserNamein interfaceEventContext
-
getCurrentSudoerId
public java.lang.Long getCurrentSudoerId()
- Specified by:
getCurrentSudoerIdin interfaceEventContext
-
getCurrentSudoerName
public java.lang.String getCurrentSudoerName()
- Specified by:
getCurrentSudoerNamein interfaceEventContext
-
isCurrentUserAdmin
public boolean isCurrentUserAdmin()
- Specified by:
isCurrentUserAdminin interfaceEventContext
-
getCurrentAdminPrivileges
public java.util.Set<ome.model.enums.AdminPrivilege> getCurrentAdminPrivileges()
- Specified by:
getCurrentAdminPrivilegesin interfaceEventContext
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceEventContext
-
getMemberOfGroupsList
public java.util.List<java.lang.Long> getMemberOfGroupsList()
- Specified by:
getMemberOfGroupsListin interfaceEventContext
-
getLeaderOfGroupsList
public java.util.List<java.lang.Long> getLeaderOfGroupsList()
- Specified by:
getLeaderOfGroupsListin interfaceEventContext
-
getCurrentEventId
public java.lang.Long getCurrentEventId()
- Specified by:
getCurrentEventIdin interfaceEventContext
-
getCurrentEventType
public java.lang.String getCurrentEventType()
- Specified by:
getCurrentEventTypein interfaceEventContext
-
getCurrentUmask
public ome.model.internal.Permissions getCurrentUmask()
-
getCurrentGroupPermissions
public ome.model.internal.Permissions getCurrentGroupPermissions()
- Specified by:
getCurrentGroupPermissionsin interfaceEventContext
-
setGroupPermissions
protected void setGroupPermissions(ome.model.internal.Permissions p)
-
-