public class SimpleEventContext extends Object implements EventContext, Serializable
EventContext
EventContext
,
Serialized FormModifier 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 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() |
Permissions |
getCurrentGroupPermissions() |
Long |
getCurrentSessionId() |
String |
getCurrentSessionUuid() |
Long |
getCurrentShareId() |
Permissions |
getCurrentUmask() |
Long |
getCurrentUserId() |
String |
getCurrentUserName() |
List<Long> |
getLeaderOfGroupsList() |
List<Long> |
getMemberOfGroupsList() |
boolean |
isCurrentUserAdmin() |
boolean |
isReadOnly() |
protected void |
setGroupPermissions(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 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 EventContext
public Long getCurrentSessionId()
getCurrentSessionId
in interface EventContext
public String getCurrentSessionUuid()
getCurrentSessionUuid
in interface EventContext
public Long getCurrentGroupId()
getCurrentGroupId
in interface EventContext
public String getCurrentGroupName()
getCurrentGroupName
in interface EventContext
public Long getCurrentUserId()
getCurrentUserId
in interface EventContext
public String getCurrentUserName()
getCurrentUserName
in interface EventContext
public boolean isCurrentUserAdmin()
isCurrentUserAdmin
in interface EventContext
public boolean isReadOnly()
isReadOnly
in interface EventContext
public List<Long> getMemberOfGroupsList()
getMemberOfGroupsList
in interface EventContext
public List<Long> getLeaderOfGroupsList()
getLeaderOfGroupsList
in interface EventContext
public Long getCurrentEventId()
getCurrentEventId
in interface EventContext
public String getCurrentEventType()
getCurrentEventType
in interface EventContext
public Permissions getCurrentUmask()
public Permissions getCurrentGroupPermissions()
getCurrentGroupPermissions
in interface EventContext
protected void setGroupPermissions(Permissions p)
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.