ome.system
Class SimpleEventContext

java.lang.Object
  extended by ome.system.SimpleEventContext
All Implemented Interfaces:
Serializable, EventContext

public class SimpleEventContext
extends Object
implements EventContext, Serializable

simple, non-thread-safe, serializable EventContext

Since:
3.0
Version:
$Revision: 2649 $, $Date: 2006-12-15 11:39:34 +0100 (Fri, 15 Dec 2006) $
Author:
Josh Moore, josh.moore at gmx.de
See Also:
EventContext, Serialized Form

Field Summary
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
           
 
Constructor Summary
protected SimpleEventContext()
          Constructor for subclasses
  SimpleEventContext(EventContext ec)
          copy constructor.
 
Method Summary
protected  void copy(EventContext ec)
          Copies all values directly from the given instance into this instance.
 Long getCurrentEventId()
           
 String getCurrentEventType()
           
 Long getCurrentGroupId()
           
 String getCurrentGroupName()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shareId

protected Long shareId

csId

protected Long csId

cgId

protected Long cgId

cuId

protected Long cuId

ceId

protected Long ceId

csName

protected String csName

cgName

protected String cgName

cuName

protected String cuName

ceType

protected String ceType

isAdmin

protected boolean isAdmin

isReadOnly

protected boolean isReadOnly

memberOfGroups

protected List<Long> memberOfGroups

leaderOfGroups

protected List<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 of getCurrentEventId(), isCurrentUserAdmin(), isReadOnly(), or getCurrentUmask() throws an exception, those fields will remain null assuming that the SecuritySystem will reload them later.


getCurrentShareId

public Long getCurrentShareId()
Specified by:
getCurrentShareId in interface EventContext

getCurrentSessionId

public Long getCurrentSessionId()
Specified by:
getCurrentSessionId in interface EventContext

getCurrentSessionUuid

public String getCurrentSessionUuid()
Specified by:
getCurrentSessionUuid in interface EventContext

getCurrentGroupId

public Long getCurrentGroupId()
Specified by:
getCurrentGroupId in interface EventContext

getCurrentGroupName

public String getCurrentGroupName()
Specified by:
getCurrentGroupName in interface EventContext

getCurrentUserId

public Long getCurrentUserId()
Specified by:
getCurrentUserId in interface EventContext

getCurrentUserName

public String getCurrentUserName()
Specified by:
getCurrentUserName in interface EventContext

isCurrentUserAdmin

public boolean isCurrentUserAdmin()
Specified by:
isCurrentUserAdmin in interface EventContext

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface EventContext

getMemberOfGroupsList

public List<Long> getMemberOfGroupsList()
Specified by:
getMemberOfGroupsList in interface EventContext

getLeaderOfGroupsList

public List<Long> getLeaderOfGroupsList()
Specified by:
getLeaderOfGroupsList in interface EventContext

getCurrentEventId

public Long getCurrentEventId()
Specified by:
getCurrentEventId in interface EventContext

getCurrentEventType

public String getCurrentEventType()
Specified by:
getCurrentEventType in interface EventContext

getCurrentUmask

public ome.model.internal.Permissions getCurrentUmask()
Specified by:
getCurrentUmask in interface EventContext


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.