public class SecurityContext extends Object
Constructor and Description |
---|
SecurityContext(long groupID)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
SecurityContext |
copy()
Returns a copy of the security context.
|
boolean |
equals(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()
Returns
true if a session has to be created for another
user, false otherwise. |
void |
setCompression(float compression)
Set the compression level
|
void |
setExperimenter(ExperimenterData experimenter)
Sets the experimenter
|
void |
setServerInformation(ServerInformation serverInformation)
Sets the
ServerInformation |
void |
sudo()
Indicates to create a session for another user.
|
String |
toString() |
public SecurityContext(long groupID)
groupID
- The identifier of the group.public void sudo()
public boolean isSudo()
true
if a session has to be created for another
user, false
otherwise.public void setExperimenter(ExperimenterData experimenter)
experimenter
- The experimenter.public long getExperimenter()
public ExperimenterData getExperimenterData()
public long getGroupID()
public ServerInformation getServerInformation()
ServerInformation
public void setServerInformation(ServerInformation serverInformation)
ServerInformation
serverInformation
- The ServerInformation
public float getCompression()
public void setCompression(float compression)
compression
- A percentage compression level from 1.00 (100%) to 0.01 (1%)
(the default is 85%)public SecurityContext copy()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.