Package ome.system

Class Principal

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Principal

    public class Principal
    extends java.lang.Object
    implements java.security.Principal, java.io.Serializable
    implementation of Principal. Specialized for Omero to carry a group, an event type and a umask.
    Since:
    3.0
    See Also:
    EventType, ExperimenterGroup, Permissions, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String group  
      protected java.lang.String name  
      protected java.lang.String type  
    • Constructor Summary

      Constructors 
      Constructor Description
      Principal​(java.lang.String name)
      Creates a Principal with null group and event type.
      Principal​(java.lang.String name, java.lang.String group, java.lang.String eventType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEventType()  
      java.lang.String getGroup()  
      java.lang.String getName()  
      java.lang.String toString()
      returns only the name of the instance because that is the expected behavior of Principal implementations
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        equals, hashCode, implies
    • Field Detail

      • name

        protected java.lang.String name
      • group

        protected java.lang.String group
      • type

        protected java.lang.String type
    • Constructor Detail

      • Principal

        public Principal​(java.lang.String name)
        Creates a Principal with null group and event type. These must be taken from the session.
        Parameters:
        name -
      • Principal

        public Principal​(java.lang.String name,
                         java.lang.String group,
                         java.lang.String eventType)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal
      • getGroup

        public java.lang.String getGroup()
      • getEventType

        public java.lang.String getEventType()
      • toString

        public java.lang.String toString()
        returns only the name of the instance because that is the expected behavior of Principal implementations
        Specified by:
        toString in interface java.security.Principal
        Overrides:
        toString in class java.lang.Object
        Returns:
        value of name