public class SimpleEventContext extends java.lang.Object implements EventContext, java.io.Serializable
EventContext
EventContext
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.util.Set<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 Permissions |
umask |
Modifier | Constructor and Description |
---|---|
protected |
SimpleEventContext()
Constructor for subclasses
|
|
SimpleEventContext(EventContext ec)
copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
copy(EventContext ec)
Copies all values directly from the given instance into this instance.
|
java.util.Set<AdminPrivilege> |
getCurrentAdminPrivileges() |
java.lang.Long |
getCurrentEventId() |
java.lang.String |
getCurrentEventType() |
java.lang.Long |
getCurrentGroupId() |
java.lang.String |
getCurrentGroupName() |
Permissions |
getCurrentGroupPermissions() |
java.lang.Long |
getCurrentSessionId() |
java.lang.String |
getCurrentSessionUuid() |
java.lang.Long |
getCurrentShareId() |
java.lang.Long |
getCurrentSudoerId() |
java.lang.String |
getCurrentSudoerName() |
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(Permissions p) |
protected java.lang.Long shareId
protected java.lang.Long csId
protected java.lang.Long cgId
protected java.lang.Long cuId
protected java.lang.Long csuId
protected java.lang.Long ceId
protected java.lang.String csName
protected java.lang.String cgName
protected java.lang.String cuName
protected java.lang.String csuName
protected java.lang.String ceType
protected boolean isAdmin
protected java.util.Set<AdminPrivilege> adminPrivileges
protected boolean isReadOnly
protected java.util.List<java.lang.Long> memberOfGroups
protected java.util.List<java.lang.Long> leaderOfGroups
protected Permissions umask
protected SimpleEventContext()
public SimpleEventContext(EventContext ec)
protected void copy(EventContext ec)
getCurrentEventId()
, isCurrentUserAdmin()
,
isReadOnly()
, or getCurrentUmask()
throws an
exception, those fields will remain null assuming that the
ome.security.SecuritySystem
will reload them later.public java.lang.Long getCurrentShareId()
getCurrentShareId
in interface EventContext
public java.lang.Long getCurrentSessionId()
getCurrentSessionId
in interface EventContext
public java.lang.String getCurrentSessionUuid()
getCurrentSessionUuid
in interface EventContext
public java.lang.Long getCurrentGroupId()
getCurrentGroupId
in interface EventContext
public java.lang.String getCurrentGroupName()
getCurrentGroupName
in interface EventContext
public java.lang.Long getCurrentUserId()
getCurrentUserId
in interface EventContext
public java.lang.String getCurrentUserName()
getCurrentUserName
in interface EventContext
public java.lang.Long getCurrentSudoerId()
getCurrentSudoerId
in interface EventContext
public java.lang.String getCurrentSudoerName()
getCurrentSudoerName
in interface EventContext
public boolean isCurrentUserAdmin()
isCurrentUserAdmin
in interface EventContext
public java.util.Set<AdminPrivilege> getCurrentAdminPrivileges()
getCurrentAdminPrivileges
in interface EventContext
public boolean isReadOnly()
isReadOnly
in interface EventContext
public java.util.List<java.lang.Long> getMemberOfGroupsList()
getMemberOfGroupsList
in interface EventContext
public java.util.List<java.lang.Long> getLeaderOfGroupsList()
getLeaderOfGroupsList
in interface EventContext
public java.lang.Long getCurrentEventId()
getCurrentEventId
in interface EventContext
public java.lang.String getCurrentEventType()
getCurrentEventType
in interface EventContext
public Permissions getCurrentUmask()
public Permissions getCurrentGroupPermissions()
getCurrentGroupPermissions
in interface EventContext
protected void setGroupPermissions(Permissions p)
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.