pojos
Class PermissionData

java.lang.Object
  extended by pojos.PermissionData

public class PermissionData
extends Object

Simple data object to wrap a Permissions instance.

Since:
3.0-M3
Version:
3.0 (Internal version: $Revision$ $Date$)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk,
Josh Moore      josh.moore@gmx.de

Constructor Summary
PermissionData()
          Creates a new instance.
PermissionData(omero.model.Permissions permissions)
          Creates a new instance.
 
Method Summary
 boolean isGroupRead()
          Returns true if the group has read access, false otherwise.
 boolean isGroupWrite()
          Returns true if the group has write access, false otherwise.
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionData

public PermissionData()
Creates a new instance.


PermissionData

public PermissionData(omero.model.Permissions permissions)
Creates a new instance.

Parameters:
permissions - The value to set.
Method Detail

isGroupRead

public boolean isGroupRead()
Returns true if the group has read access, false otherwise.

Returns:
See above.

isGroupWrite

public boolean isGroupWrite()
Returns true if the group has write access, false otherwise.

Returns:
See above.

isUserRead

public boolean isUserRead()
Returns true if the user has read access, false otherwise.

Returns:
See above.

isUserWrite

public boolean isUserWrite()
Returns true if the user has write access, false otherwise.

Returns:
See above.

isWorldRead

public boolean isWorldRead()
Returns true if the world has read access, false otherwise.

Returns:
See above.

isWorldWrite

public boolean isWorldWrite()
Returns true if the world has write access, false otherwise.

Returns:
See above.

setGroupRead

public void setGroupRead(boolean groupRead)
Sets to true if the group has read access, false otherwise.

Parameters:
groupRead - The value to set.

setGroupWrite

public void setGroupWrite(boolean groupWrite)
Sets to true if the group has write access, false otherwise.

Parameters:
groupWrite - The value to set.

setUserRead

public void setUserRead(boolean userRead)
Sets to true if the user has read access, false otherwise.

Parameters:
userRead - The value to set.

setUserWrite

public void setUserWrite(boolean userWrite)
Sets to true if the user has write access, false otherwise.

Parameters:
userWrite - The value to set.

setWorldRead

public void setWorldRead(boolean worldRead)
Sets to true if the world has read access, false otherwise.

Parameters:
worldRead - The value to set.

setWorldWrite

public void setWorldWrite(boolean worldWrite)
Sets to true if the world has write access, false otherwise.

Parameters:
worldWrite - The value to set.


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.