|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.cog.abstraction.impl.file.GridFileImpl
GridFileImpl contains information pertaining to a file.
| Field Summary |
| Fields inherited from interface org.globus.cog.abstraction.interfaces.GridFile |
DEVICE, DIRECTORY, FILE, SOFTLINK, UNKNOWN |
| Constructor Summary | |
GridFileImpl()
|
|
| Method Summary | |
boolean |
allCanExecute()
return true of all users can execute the current file |
boolean |
allCanRead()
return true if all users can read from this file |
boolean |
allCanWrite()
return true if all users can write into this file |
String |
getAbsolutePathName()
return the absolute path name |
Permissions |
getAllPermissions()
return permissions for all users |
byte |
getFileType()
return file type |
Permissions |
getGroupPermissions()
return permissions for the group |
String |
getLastModified()
return last modified date for this file |
String |
getMode()
return mode as a string of the form 777 |
String |
getName()
return name of the file |
long |
getSize()
return the size of the file |
Permissions |
getUserPermissions()
get permissions for the user |
boolean |
groupCanExecute()
return true of the group members can execute the current file |
boolean |
groupCanRead()
return true if the group members can read from this file |
boolean |
groupCanWrite()
return true if the group members can write into this file |
boolean |
isDevice()
return true if the GridFile represents a device |
boolean |
isDirectory()
return true if the GridFile represents a directory |
boolean |
isFile()
return true if the GridFile represents a file |
boolean |
isSoftLink()
return true if the GridFile represents a softlink |
void |
setAbsolutePathName(String name)
set the absolute path name |
void |
setAllPermissions(Permissions allPermissions)
set permissions for all users |
void |
setFileType(byte type)
set file type to UNKNOWN/ FILE/ DIRECTORY/ SOFTLINK/ DEVICE |
void |
setGroupPermissions(Permissions groupPermissions)
set permissions for the group |
void |
setLastModified(String date)
set the last modified date for this file |
void |
setMode(String mode)
set mode for the current file. |
void |
setName(String name)
set name for the file |
void |
setSize(long size)
set the size of the file |
void |
setUserPermissions(Permissions userPermissions)
set permissions for the user |
String |
toString()
represents the entire grid file properties as a string |
boolean |
userCanExecute()
return true of the user can execute the current file |
boolean |
userCanRead()
return true if the user can read from this file |
boolean |
userCanWrite()
return true if the user can write into this file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public GridFileImpl()
| Method Detail |
public void setName(String name)
setName in interface GridFilepublic String getName()
getName in interface GridFilepublic void setAbsolutePathName(String name)
setAbsolutePathName in interface GridFilepublic String getAbsolutePathName()
getAbsolutePathName in interface GridFilepublic void setSize(long size)
setSize in interface GridFilepublic long getSize()
getSize in interface GridFilepublic void setLastModified(String date)
setLastModified in interface GridFilepublic String getLastModified()
getLastModified in interface GridFilepublic void setFileType(byte type)
setFileType in interface GridFilepublic byte getFileType()
getFileType in interface GridFilepublic boolean isFile()
isFile in interface GridFilepublic boolean isDirectory()
isDirectory in interface GridFilepublic boolean isSoftLink()
isSoftLink in interface GridFilepublic boolean isDevice()
isDevice in interface GridFilepublic void setMode(String mode)
setMode in interface GridFilepublic String getMode()
getMode in interface GridFilepublic void setUserPermissions(Permissions userPermissions)
setUserPermissions in interface GridFilepublic Permissions getUserPermissions()
getUserPermissions in interface GridFilepublic void setGroupPermissions(Permissions groupPermissions)
setGroupPermissions in interface GridFilepublic Permissions getGroupPermissions()
getGroupPermissions in interface GridFilepublic void setAllPermissions(Permissions allPermissions)
setAllPermissions in interface GridFilepublic Permissions getAllPermissions()
getAllPermissions in interface GridFilepublic boolean userCanRead()
userCanRead in interface GridFilepublic boolean userCanWrite()
userCanWrite in interface GridFilepublic boolean userCanExecute()
userCanExecute in interface GridFilepublic boolean groupCanRead()
groupCanRead in interface GridFilepublic boolean groupCanWrite()
groupCanWrite in interface GridFilepublic boolean groupCanExecute()
groupCanExecute in interface GridFilepublic boolean allCanRead()
allCanRead in interface GridFilepublic boolean allCanWrite()
allCanWrite in interface GridFilepublic boolean allCanExecute()
allCanExecute in interface GridFilepublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||