ome.system
Class Principal
java.lang.Object
ome.system.Principal
- All Implemented Interfaces:
- Serializable, Principal
public class Principal
- extends Object
- implements Principal, Serializable
implementation of Principal
. Specialized for Omero to
carry a group
, an event type
and
a umask
.
- Since:
- 3.0
- Version:
- $Revision: 6454 $, $Date: 2010-04-01 11:05:55 +0100 (Thu, 01 Apr 2010) $
- Author:
- Josh Moore, josh.moore at gmx.de
- See Also:
EventType
,
ExperimenterGroup
,
Permissions
,
Serialized Form
name
protected String name
group
protected String group
type
protected String type
Principal
public Principal(String name)
- Creates a Principal with null group and event type. These must be taken
from the session.
- Parameters:
name
-
Principal
public Principal(String name,
String group,
String eventType)
getName
public String getName()
- Specified by:
getName
in interface Principal
getGroup
public String getGroup()
getEventType
public String getEventType()
toString
public String toString()
- returns only the name of the instance because that is the expected
behavior of
Principal
implementations
- Specified by:
toString
in interface Principal
- Overrides:
toString
in class Object
- Returns:
- value of
name
OmeroJava Api
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.