Package omero.gateway

Class SecurityContext


  • public class SecurityContext
    extends java.lang.Object
    Hosts information required to access correct connector.
    Since:
    Beta4.4
    • Constructor Detail

      • SecurityContext

        public SecurityContext​(long groupID)
        Creates a new instance.
        Parameters:
        groupID - The identifier of the group.
    • Method Detail

      • sudo

        public void sudo()
        Indicates to create a session for another user.
      • isSudo

        public boolean isSudo()
        Returns true if a session has to be created for another user, false otherwise.
        Returns:
        See above.
      • setExperimenter

        public void setExperimenter​(ExperimenterData experimenter)
        Sets the experimenter
        Parameters:
        experimenter - The experimenter.
      • getExperimenter

        public long getExperimenter()
        Returns the id of the experimenter.
        Returns:
        See above.
      • getExperimenterData

        public ExperimenterData getExperimenterData()
        Returns the experimenter.
        Returns:
        See above.
      • getGroupID

        public long getGroupID()
        Returns the identifier of the group.
        Returns:
        See above.
      • getCompression

        public float getCompression()
        Get the compression level (A percentage compression level from 1.00 (100%) to 0.01 (1%) (the default is 85%))
        Returns:
        See above.
      • setCompression

        public void setCompression​(float compression)
        Set the compression level
        Parameters:
        compression - A percentage compression level from 1.00 (100%) to 0.01 (1%) (the default is 85%)
      • copy

        public SecurityContext copy()
        Returns a copy of the security context.
        Returns:
        See above.
      • hashCode

        public int hashCode()
        Calculate the hashCode for the data.
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overridden to control if the passed object equals the current one.
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(Object)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object