Package omero.gateway
Class SecurityContext
- java.lang.Object
-
- omero.gateway.SecurityContext
-
public class SecurityContext extends java.lang.Object
Hosts 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 SecurityContext
copy()
Returns a copy of the security context.boolean
equals(java.lang.Object obj)
Overridden to control if the passed object equals the current one.float
getCompression()
Get the compression level (A percentage compression level from 1.00 (100%) to 0.01 (1%) (the default is 85%))long
getExperimenter()
Returns the id of the experimenter.ExperimenterData
getExperimenterData()
Returns the experimenter.long
getGroupID()
Returns the identifier of the group.ServerInformation
getServerInformation()
int
hashCode()
Calculate the hashCode for the data.boolean
isSudo()
Returnstrue
if a session has to be created for another user,false
otherwise.void
setCompression(float compression)
Set the compression levelvoid
setExperimenter(ExperimenterData experimenter)
Sets the experimentervoid
setServerInformation(ServerInformation serverInformation)
Sets theServerInformation
void
sudo()
Indicates to create a session for another user.java.lang.String
toString()
-
-
-
Method Detail
-
sudo
public void sudo()
Indicates to create a session for another user.
-
isSudo
public boolean isSudo()
Returnstrue
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.
-
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:
hashCode
in 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:
equals
in classjava.lang.Object
- See Also:
Object.equals(Object)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-