|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.vfs.AccessPermissions
public 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);
Nested Class Summary | |
---|---|
static class |
AccessPermissions.Format
|
Constructor Summary | |
---|---|
AccessPermissions()
Creates a new permissions instance. |
|
AccessPermissions(AccessPermissions that)
Copy constructor. |
|
AccessPermissions(boolean fileDownloadingAllowed,
boolean fileUploadingAllowed,
boolean fileDeletionAllowed,
boolean fileAppendingAllowed,
boolean fileListingAllowed,
boolean fileRenamingAllowed,
boolean directoriesListingAllowed,
boolean directoryMakingAllowed,
boolean directoryDeletionAllowed,
boolean subdirectoriesBrowsingAllowed)
|
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 |
isFileRenamingAllowed()
Checks if the user is allowed to rename 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 value)
Sets the ability to list subdirs in the current direcory. |
void |
setDirectoryDeletionAllowed(boolean value)
Sets the ability to delete directories in the current direcory. |
void |
setDirectoryMakingAllowed(boolean value)
Sets the ability to make directories in the current direcory. |
void |
setFileAppendingAllowed(boolean value)
Sets the ability to append files in the current direcory. |
void |
setFileDeletionAllowed(boolean value)
Sets the ability to delete files from the current direcory. |
void |
setFileDownloadingAllowed(boolean value)
Sets the ability to download files from the current direcory. |
void |
setFileListingAllowed(boolean value)
Sets the ability to list files in the current direcory. |
void |
setFileRenamingAllowed(boolean value)
Sets the ability to rename files in the current direcory. |
void |
setFileUploadingAllowed(boolean value)
Sets the ability to upload files to the current direcory. |
void |
setSubdirectoriesBrowsingAllowed(boolean value)
Sets the ability to browse subdirs in the current direcory. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AccessPermissions(boolean fileDownloadingAllowed, boolean fileUploadingAllowed, boolean fileDeletionAllowed, boolean fileAppendingAllowed, boolean fileListingAllowed, boolean fileRenamingAllowed, boolean directoriesListingAllowed, boolean directoryMakingAllowed, boolean directoryDeletionAllowed, boolean subdirectoriesBrowsingAllowed)
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 value)
value
- 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 value)
value
- 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 value)
value
- 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 value)
value
- 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 value)
value
- if true
the user is allowed to list files in the current direcorypublic boolean isFileRenamingAllowed()
true
if the user is allowed to rename files; false
otherwisepublic void setFileRenamingAllowed(boolean value)
value
- if true
the user is allowed to rename files in the current direcorypublic boolean isDirectoriesListingAllowed()
true
if the user is allowed to list subdirs; false
otherwisepublic void setDirectoriesListingAllowed(boolean value)
value
- 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 value)
value
- 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 value)
value
- 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 value)
value
- if true
the user is allowed to browse subdirs in the current direcorypublic java.lang.String toString()
toString
in class java.lang.Object
|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |