Package omero.gateway.model
Class PermissionData
- java.lang.Object
-
- omero.gateway.model.PermissionData
-
public class PermissionData extends java.lang.ObjectSimple data object to wrap aPermissionsinstance.- Since:
- 3.0-M3
-
-
Constructor Summary
Constructors Constructor Description PermissionData()Creates a new instance.PermissionData(omero.model.Permissions permissions)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPermissionsLevel()Returns the permissions level.booleanisGroupAnnotate()Returnstrueif the group has annotate access i.e.booleanisGroupRead()Returnstrueif the group has read access i.e.booleanisGroupWrite()Returnstrueif the group has write access i.e.booleanisUserRead()Returnstrueif the user has read access,falseotherwise.booleanisUserWrite()Returnstrueif the user has write access,falseotherwise.booleanisWorldRead()Returnstrueif the world has read access,falseotherwise.booleanisWorldWrite()Returnstrueif the world has write access,falseotherwise.voidsetGroupAnnotate(boolean groupAnnotate)Sets totrueif the group has annotate access,falseotherwise.voidsetGroupRead(boolean groupRead)Sets totrueif the group has read access,falseotherwise.voidsetGroupWrite(boolean groupWrite)Sets totrueif the group has write access,falseotherwise.voidsetUserRead(boolean userRead)Sets totrueif the user has read access,falseotherwise.voidsetUserWrite(boolean userWrite)Sets totrueif the user has write access,falseotherwise.voidsetWorldRead(boolean worldRead)Sets totrueif the world has read access,falseotherwise.voidsetWorldWrite(boolean worldWrite)Sets totrueif the world has write access,falseotherwise.java.lang.StringtoString()
-
-
-
Method Detail
-
getPermissionsLevel
public int getPermissionsLevel()
Returns the permissions level.- Returns:
- See above.
-
isGroupRead
public boolean isGroupRead()
Returnstrueif the group has read access i.e.RWR---,falseotherwise.- Returns:
- See above.
-
isGroupAnnotate
public boolean isGroupAnnotate()
Returnstrueif the group has annotate access i.e.RWRA--,falseotherwise.- Returns:
- See above.
-
isGroupWrite
public boolean isGroupWrite()
Returnstrueif the group has write access i.e.RWRW--,falseotherwise.- Returns:
- See above.
-
isUserRead
public boolean isUserRead()
Returnstrueif the user has read access,falseotherwise.- Returns:
- See above.
-
isUserWrite
public boolean isUserWrite()
Returnstrueif the user has write access,falseotherwise.- Returns:
- See above.
-
isWorldRead
public boolean isWorldRead()
Returnstrueif the world has read access,falseotherwise.- Returns:
- See above.
-
isWorldWrite
public boolean isWorldWrite()
Returnstrueif the world has write access,falseotherwise.- Returns:
- See above.
-
setGroupRead
public void setGroupRead(boolean groupRead)
Sets totrueif the group has read access,falseotherwise.- Parameters:
groupRead- The value to set.
-
setGroupAnnotate
public void setGroupAnnotate(boolean groupAnnotate)
Sets totrueif the group has annotate access,falseotherwise.- Parameters:
groupAnnotate- The value to set.
-
setGroupWrite
public void setGroupWrite(boolean groupWrite)
Sets totrueif the group has write access,falseotherwise.- Parameters:
groupWrite- The value to set.
-
setUserRead
public void setUserRead(boolean userRead)
Sets totrueif the user has read access,falseotherwise.- Parameters:
userRead- The value to set.
-
setUserWrite
public void setUserWrite(boolean userWrite)
Sets totrueif the user has write access,falseotherwise.- Parameters:
userWrite- The value to set.
-
setWorldRead
public void setWorldRead(boolean worldRead)
Sets totrueif the world has read access,falseotherwise.- Parameters:
worldRead- The value to set.
-
setWorldWrite
public void setWorldWrite(boolean worldWrite)
Sets totrueif the world has write access,falseotherwise.- Parameters:
worldWrite- The value to set.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-