org.globus.cog.abstraction.interfaces
Interface GridFile

All Known Implementing Classes:
GridFileImpl

public interface GridFile

An abstract representation of file or directory in the remote resource. Carries properties and access rights information of the file.


Field Summary
static byte DEVICE
           
static byte DIRECTORY
           
static byte FILE
           
static byte SOFTLINK
           
static byte UNKNOWN
           
 
Method Summary
 boolean allCanExecute()
          return true if all users can execute the file
 boolean allCanRead()
          return true if all users can read from the file
 boolean allCanWrite()
          return true if all users can write into the file
 String getAbsolutePathName()
          return absolute path name of the file
 Permissions getAllPermissions()
          get permissions of all users
 byte getFileType()
          return file type
 Permissions getGroupPermissions()
          get permissions of the group users
 String getLastModified()
          return last modified date
 String getMode()
          return mode of the file
 String getName()
          get name of the file
 long getSize()
          get size of the file
 Permissions getUserPermissions()
          get permissions of the user
 boolean groupCanExecute()
          return true if the group can execute the file
 boolean groupCanRead()
          return true if the group can read from the file
 boolean groupCanWrite()
          return true if the group can write into the file
 boolean isDevice()
          return true if it is device
 boolean isDirectory()
          return true if it is a directory
 boolean isFile()
          return true if it is a file
 boolean isSoftLink()
          return true if it is soft link
 void setAbsolutePathName(String name)
          set absolute path name of the file
 void setAllPermissions(Permissions allPermissions)
          set permissions for all users
 void setFileType(byte type)
          set file type
 void setGroupPermissions(Permissions groupPermissions)
          set permissions for the group users
 void setLastModified(String date)
          set last modified date of the file
 void setMode(String mode)
          set mode of the file
 void setName(String name)
          set name of the file
 void setSize(long size)
          set size of the file
 void setUserPermissions(Permissions userPermissions)
          set permissions for the user
 boolean userCanExecute()
          return true if the user can execute the file
 boolean userCanRead()
          return true if the user can read the file
 boolean userCanWrite()
          return true if the user can write into the file
 

Field Detail

UNKNOWN

public static final byte UNKNOWN
See Also:
Constant Field Values

FILE

public static final byte FILE
See Also:
Constant Field Values

DIRECTORY

public static final byte DIRECTORY
See Also:
Constant Field Values

SOFTLINK

public static final byte SOFTLINK
See Also:
Constant Field Values

DEVICE

public static final byte DEVICE
See Also:
Constant Field Values
Method Detail

setSize

public void setSize(long size)
set size of the file


getSize

public long getSize()
get size of the file


setName

public void setName(String name)
set name of the file


getName

public String getName()
get name of the file


setAbsolutePathName

public void setAbsolutePathName(String name)
set absolute path name of the file


getAbsolutePathName

public String getAbsolutePathName()
return absolute path name of the file


setLastModified

public void setLastModified(String date)
set last modified date of the file


getLastModified

public String getLastModified()
return last modified date


setFileType

public void setFileType(byte type)
set file type


getFileType

public byte getFileType()
return file type


isFile

public boolean isFile()
return true if it is a file


isDirectory

public boolean isDirectory()
return true if it is a directory


isSoftLink

public boolean isSoftLink()
return true if it is soft link


isDevice

public boolean isDevice()
return true if it is device


setMode

public void setMode(String mode)
set mode of the file


getMode

public String getMode()
return mode of the file


setUserPermissions

public void setUserPermissions(Permissions userPermissions)
set permissions for the user


getUserPermissions

public Permissions getUserPermissions()
get permissions of the user


setGroupPermissions

public void setGroupPermissions(Permissions groupPermissions)
set permissions for the group users


getGroupPermissions

public Permissions getGroupPermissions()
get permissions of the group users


setAllPermissions

public void setAllPermissions(Permissions allPermissions)
set permissions for all users


getAllPermissions

public Permissions getAllPermissions()
get permissions of all users


userCanRead

public boolean userCanRead()
return true if the user can read the file


userCanWrite

public boolean userCanWrite()
return true if the user can write into the file


userCanExecute

public boolean userCanExecute()
return true if the user can execute the file


groupCanRead

public boolean groupCanRead()
return true if the group can read from the file


groupCanWrite

public boolean groupCanWrite()
return true if the group can write into the file


groupCanExecute

public boolean groupCanExecute()
return true if the group can execute the file


allCanRead

public boolean allCanRead()
return true if all users can read from the file


allCanWrite

public boolean allCanWrite()
return true if all users can write into the file


allCanExecute

public boolean allCanExecute()
return true if all users can execute the file