org.globus.cog.abstraction.impl.file
Class PermissionsImpl

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.file.PermissionsImpl
All Implemented Interfaces:
Permissions

public class PermissionsImpl
extends Object
implements Permissions

Class to set and get Permissions for Grid File objects


Constructor Summary
PermissionsImpl()
           
 
Method Summary
 boolean getExecute()
          return true if executable
 boolean getRead()
          return true if readable
 boolean getWrite()
          return true if writable
 void setExecute(boolean canExecute)
          set/unset executable
 void setRead(boolean canRead)
          set/unset readable
 void setWrite(boolean canWrite)
          set/unset writable
 String toString()
          return a string representation of the mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionsImpl

public PermissionsImpl()
Method Detail

setRead

public void setRead(boolean canRead)
set/unset readable

Specified by:
setRead in interface Permissions

getRead

public boolean getRead()
return true if readable

Specified by:
getRead in interface Permissions

setWrite

public void setWrite(boolean canWrite)
set/unset writable

Specified by:
setWrite in interface Permissions

getWrite

public boolean getWrite()
return true if writable

Specified by:
getWrite in interface Permissions

setExecute

public void setExecute(boolean canExecute)
set/unset executable

Specified by:
setExecute in interface Permissions

getExecute

public boolean getExecute()
return true if executable

Specified by:
getExecute in interface Permissions

toString

public String toString()
return a string representation of the mode. Pattern 777

Specified by:
toString in interface Permissions