public class SimpleEventContext extends java.lang.Object implements EventContext, java.io.Serializable
EventContextEventContext,
Serialized Form| Modifier and Type | Field and 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 |
| 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<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) |
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<ome.model.enums.AdminPrivilege> adminPrivileges
protected boolean isReadOnly
protected java.util.List<java.lang.Long> memberOfGroups
protected java.util.List<java.lang.Long> leaderOfGroups
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
ome.security.SecuritySystem will reload them later.public java.lang.Long getCurrentShareId()
getCurrentShareId in interface EventContextpublic java.lang.Long getCurrentSessionId()
getCurrentSessionId in interface EventContextpublic java.lang.String getCurrentSessionUuid()
getCurrentSessionUuid in interface EventContextpublic java.lang.Long getCurrentGroupId()
getCurrentGroupId in interface EventContextpublic java.lang.String getCurrentGroupName()
getCurrentGroupName in interface EventContextpublic java.lang.Long getCurrentUserId()
getCurrentUserId in interface EventContextpublic java.lang.String getCurrentUserName()
getCurrentUserName in interface EventContextpublic java.lang.Long getCurrentSudoerId()
getCurrentSudoerId in interface EventContextpublic java.lang.String getCurrentSudoerName()
getCurrentSudoerName in interface EventContextpublic boolean isCurrentUserAdmin()
isCurrentUserAdmin in interface EventContextpublic java.util.Set<ome.model.enums.AdminPrivilege> getCurrentAdminPrivileges()
getCurrentAdminPrivileges in interface EventContextpublic boolean isReadOnly()
isReadOnly in interface EventContextpublic java.util.List<java.lang.Long> getMemberOfGroupsList()
getMemberOfGroupsList in interface EventContextpublic java.util.List<java.lang.Long> getLeaderOfGroupsList()
getLeaderOfGroupsList in interface EventContextpublic java.lang.Long getCurrentEventId()
getCurrentEventId in interface EventContextpublic java.lang.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)