|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.vfs.AccessPermissions
public final class AccessPermissions
Represents access permissions for virtual file.
The following is an example of AccessPermissions classAccessPermissions permissions = new AccessPermissions(); // Permission of the virtual file name permissions.setDirectoryDeletionAllowed(false); permissions.setFileDownloadingAllowed(false); permissions.setFileUploadingAllowed(false); // Creates a VirtualLocalFile and give some permissions VirtualLocalFile vp = new VirtualLocalFile(virtualFileName,permissions,realFileName);
Constructor Summary | |
---|---|
AccessPermissions()
Creates a new permissions instance. |
|
AccessPermissions(AccessPermissions that)
Copy constructor. |
Method Summary | |
---|---|
boolean |
isDirectoriesListingAllowed()
Checks if the user is allowed to list subdirs in the current direcory. |
boolean |
isDirectoryDeletionAllowed()
Checks if the user is allowed to delete directories in the current direcory. |
boolean |
isDirectoryMakingAllowed()
Checks if the user is allowed to make directories in the current direcory. |
boolean |
isFileAppendingAllowed()
Checks if the user is allowed to append files in the current direcory. |
boolean |
isFileDeletionAllowed()
Checks if the user is allowed to delete files from the current direcory. |
boolean |
isFileDownloadingAllowed()
Checks if the user is allowed to download files from the current direcory. |
boolean |
isFileListingAllowed()
Checks if the user is allowed to list files in the current direcory. |
boolean |
isFileUploadingAllowed()
Checks if the user is allowed to upload files to the current direcory. |
boolean |
isSubdirectoriesBrowsingAllowed()
Checks if the user is allowed to browse subdirs in the current direcory. |
void |
setDirectoriesListingAllowed(boolean val)
Sets the ability to list subdirs in the current direcory. |
void |
setDirectoryDeletionAllowed(boolean val)
Sets the ability to delete directories in the current direcory. |
void |
setDirectoryMakingAllowed(boolean val)
Sets the ability to make directories in the current direcory. |
void |
setFileAppendingAllowed(boolean val)
Sets the ability to append files in the current direcory. |
void |
setFileDeletionAllowed(boolean val)
Sets the ability to delete files from the current direcory. |
void |
setFileDownloadingAllowed(boolean val)
Sets the ability to download files from the current direcory. |
void |
setFileListingAllowed(boolean val)
Sets the ability to list files in the current direcory. |
void |
setFileUploadingAllowed(boolean val)
Sets the ability to upload files to the current direcory. |
void |
setSubdirectoriesBrowsingAllowed(boolean val)
Sets the ability to browse subdirs in the current direcory. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccessPermissions()
public AccessPermissions(AccessPermissions that)
that
- instance to copyMethod Detail |
---|
public boolean isFileDownloadingAllowed()
true
if the user is allowed to download files; false
otherwisepublic void setFileDownloadingAllowed(boolean val)
val
- if true
the user is allowed to download files from the current direcorypublic boolean isFileUploadingAllowed()
true
if the user is allowed to upload files; false
otherwisepublic void setFileUploadingAllowed(boolean val)
val
- if true
the user is allowed to upload files to the current direcorypublic boolean isFileDeletionAllowed()
true
if the user is allowed to delete files; false
otherwisepublic void setFileDeletionAllowed(boolean val)
val
- if true
the user is allowed to delete files from the current direcorypublic boolean isFileAppendingAllowed()
true
if the user is allowed to append files; false
otherwisepublic void setFileAppendingAllowed(boolean val)
val
- if true
the user is allowed to append files in the current direcorypublic boolean isFileListingAllowed()
true
if the user is allowed to list files; false
otherwisepublic void setFileListingAllowed(boolean val)
val
- if true
the user is allowed to list files in the current direcorypublic boolean isDirectoriesListingAllowed()
true
if the user is allowed to list subdirs; false
otherwisepublic void setDirectoriesListingAllowed(boolean val)
val
- if true
the user is allowed to list subdirs in the current direcorypublic boolean isDirectoryMakingAllowed()
true
if the user is allowed to make directories; false
otherwisepublic void setDirectoryMakingAllowed(boolean val)
val
- if true
the user is allowed to make directories in the current direcorypublic boolean isDirectoryDeletionAllowed()
true
if the user is allowed to delete directories; false
otherwisepublic void setDirectoryDeletionAllowed(boolean val)
val
- if true
the user is allowed to delete directories in the current direcorypublic boolean isSubdirectoriesBrowsingAllowed()
true
if the user is allowed to brows subdirs; false
otherwisepublic void setSubdirectoriesBrowsingAllowed(boolean val)
val
- if true
the user is allowed to browse subdirs in the current direcory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |