public class PermissionData extends Object
Permissions
instance.Constructor and Description |
---|
PermissionData()
Creates a new instance.
|
PermissionData(omero.model.Permissions permissions)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getPermissionsLevel()
Returns the permissions level.
|
boolean |
isGroupAnnotate()
Returns
true if the group has annotate access i.e. |
boolean |
isGroupRead()
Returns
true if the group has read access
i.e. |
boolean |
isGroupWrite()
Returns
true if the group has write access i.e. |
boolean |
isUserRead()
Returns
true if the user has read access,
false otherwise. |
boolean |
isUserWrite()
Returns
true if the user has write access,
false otherwise. |
boolean |
isWorldRead()
Returns
true if the world has read access,
false otherwise. |
boolean |
isWorldWrite()
Returns
true if the world has write access,
false otherwise. |
void |
setGroupAnnotate(boolean groupAnnotate)
Sets to
true if the group has annotate access,
false otherwise. |
void |
setGroupRead(boolean groupRead)
Sets to
true if the group has read access,
false otherwise. |
void |
setGroupWrite(boolean groupWrite)
Sets to
true if the group has write access,
false otherwise. |
void |
setUserRead(boolean userRead)
Sets to
true if the user has read access,
false otherwise. |
void |
setUserWrite(boolean userWrite)
Sets to
true if the user has write access,
false otherwise. |
void |
setWorldRead(boolean worldRead)
Sets to
true if the world has read access,
false otherwise. |
void |
setWorldWrite(boolean worldWrite)
Sets to
true if the world has write access,
false otherwise. |
String |
toString() |
public PermissionData()
public PermissionData(omero.model.Permissions permissions)
permissions
- The value to set.public int getPermissionsLevel()
public boolean isGroupRead()
true
if the group has read access
i.e. RWR---
, false
otherwise.public boolean isGroupAnnotate()
true
if the group has annotate access i.e.
RWRA--
, false
otherwise.public boolean isGroupWrite()
true
if the group has write access i.e.
RWRW--
, false
otherwise.public boolean isUserRead()
true
if the user has read access,
false
otherwise.public boolean isUserWrite()
true
if the user has write access,
false
otherwise.public boolean isWorldRead()
true
if the world has read access,
false
otherwise.public boolean isWorldWrite()
true
if the world has write access,
false
otherwise.public void setGroupRead(boolean groupRead)
true
if the group has read access,
false
otherwise.groupRead
- The value to set.public void setGroupAnnotate(boolean groupAnnotate)
true
if the group has annotate access,
false
otherwise.groupAnnotate
- The value to set.public void setGroupWrite(boolean groupWrite)
true
if the group has write access,
false
otherwise.groupWrite
- The value to set.public void setUserRead(boolean userRead)
true
if the user has read access,
false
otherwise.userRead
- The value to set.public void setUserWrite(boolean userWrite)
true
if the user has write access,
false
otherwise.userWrite
- The value to set.public void setWorldRead(boolean worldRead)
true
if the world has read access,
false
otherwise.worldRead
- The value to set.public void setWorldWrite(boolean worldWrite)
true
if the world has write access,
false
otherwise.worldWrite
- The value to set.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.