Package omero.gateway
Class SecurityContext
- java.lang.Object
-
- omero.gateway.SecurityContext
-
public class SecurityContext extends java.lang.ObjectHosts information required to access correct connector.- Since:
- Beta4.4
-
-
Constructor Summary
Constructors Constructor Description SecurityContext(long groupID)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityContextcopy()Returns a copy of the security context.booleanequals(java.lang.Object obj)Overridden to control if the passed object equals the current one.floatgetCompression()Get the compression level (A percentage compression level from 1.00 (100%) to 0.01 (1%) (the default is 85%))longgetExperimenter()Returns the id of the experimenter.ExperimenterDatagetExperimenterData()Returns the experimenter.longgetGroupID()Returns the identifier of the group.ServerInformationgetServerInformation()inthashCode()Calculate the hashCode for the data.booleanisSudo()Returnstrueif a session has to be created for another user,falseotherwise.voidsetCompression(float compression)Set the compression levelvoidsetExperimenter(ExperimenterData experimenter)Sets the experimentervoidsetServerInformation(ServerInformation serverInformation)Sets theServerInformationvoidsudo()Indicates to create a session for another user.java.lang.StringtoString()
-
-
-
Method Detail
-
sudo
public void sudo()
Indicates to create a session for another user.
-
isSudo
public boolean isSudo()
Returnstrueif a session has to be created for another user,falseotherwise.- 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.
-
getServerInformation
public ServerInformation getServerInformation()
- Returns:
- The
ServerInformation
-
setServerInformation
public void setServerInformation(ServerInformation serverInformation)
Sets theServerInformation- Parameters:
serverInformation- TheServerInformation
-
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:
hashCodein classjava.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:
equalsin classjava.lang.Object- See Also:
Object.equals(Object)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-