public class SimpleEventContext extends Object implements EventContext, Serializable
EventContextEventContext,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Long |
ceId |
protected String |
ceType |
protected Long |
cgId |
protected String |
cgName |
protected Long |
csId |
protected String |
csName |
protected Long |
cuId |
protected String |
cuName |
protected boolean |
isAdmin |
protected boolean |
isReadOnly |
protected List<Long> |
leaderOfGroups |
protected List<Long> |
memberOfGroups |
protected Long |
shareId |
protected ome.model.internal.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.
|
Long |
getCurrentEventId() |
String |
getCurrentEventType() |
Long |
getCurrentGroupId() |
String |
getCurrentGroupName() |
ome.model.internal.Permissions |
getCurrentGroupPermissions() |
Long |
getCurrentSessionId() |
String |
getCurrentSessionUuid() |
Long |
getCurrentShareId() |
ome.model.internal.Permissions |
getCurrentUmask() |
Long |
getCurrentUserId() |
String |
getCurrentUserName() |
List<Long> |
getLeaderOfGroupsList() |
List<Long> |
getMemberOfGroupsList() |
boolean |
isCurrentUserAdmin() |
boolean |
isReadOnly() |
protected void |
setGroupPermissions(ome.model.internal.Permissions p) |
protected Long shareId
protected Long csId
protected Long cgId
protected Long cuId
protected Long ceId
protected String csName
protected String cgName
protected String cuName
protected String ceType
protected boolean isAdmin
protected boolean isReadOnly
protected ome.model.internal.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
SecuritySystem will reload them later.public Long getCurrentShareId()
getCurrentShareId in interface EventContextpublic Long getCurrentSessionId()
getCurrentSessionId in interface EventContextpublic String getCurrentSessionUuid()
getCurrentSessionUuid in interface EventContextpublic Long getCurrentGroupId()
getCurrentGroupId in interface EventContextpublic String getCurrentGroupName()
getCurrentGroupName in interface EventContextpublic Long getCurrentUserId()
getCurrentUserId in interface EventContextpublic String getCurrentUserName()
getCurrentUserName in interface EventContextpublic boolean isCurrentUserAdmin()
isCurrentUserAdmin in interface EventContextpublic boolean isReadOnly()
isReadOnly in interface EventContextpublic List<Long> getMemberOfGroupsList()
getMemberOfGroupsList in interface EventContextpublic List<Long> getLeaderOfGroupsList()
getLeaderOfGroupsList in interface EventContextpublic Long getCurrentEventId()
getCurrentEventId in interface EventContextpublic String getCurrentEventType()
getCurrentEventType in interface EventContextpublic ome.model.internal.Permissions getCurrentUmask()
public ome.model.internal.Permissions getCurrentGroupPermissions()
getCurrentGroupPermissions in interface EventContextprotected void setGroupPermissions(ome.model.internal.Permissions p)
Version: 5.1.1-ice35-b43
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.