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
|
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
- The compression ratiopublic 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.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.