public class AccessPermissions
extends java.lang.Object
implements java.io.Serializable
AccessPermissions 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);
| Modifier and Type | Class and Description |
|---|---|
static class |
AccessPermissions.Format |
| Constructor and Description |
|---|
AccessPermissions()
Creates a new permissions instance.
|
AccessPermissions(AccessPermissions that)
Copy constructor.
|
AccessPermissions(boolean fileDownloadingAllowed,
boolean fileUploadingAllowed,
boolean fileOverwritingAllowed,
boolean fileDeletionAllowed,
boolean fileAppendingAllowed,
boolean fileListingAllowed,
boolean fileRenamingAllowed,
boolean fileSharingAllowed,
boolean directoriesListingAllowed,
boolean directoryMakingAllowed,
boolean directoryDeletionAllowed,
boolean subdirectoriesBrowsingAllowed) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDirectoriesListingAllowed()
Checks if the user is allowed to list subdirs in the current directory.
|
boolean |
isDirectoryDeletionAllowed()
Checks if the user is allowed to delete directories in the current directory.
|
boolean |
isDirectoryMakingAllowed()
Checks if the user is allowed to make directories in the current directory.
|
boolean |
isFileAppendingAllowed()
Checks if the user is allowed to append files in the current directory.
|
boolean |
isFileDeletionAllowed()
Checks if the user is allowed to delete files from the current directory.
|
boolean |
isFileDownloadingAllowed()
Checks if the user is allowed to download files from the current directory.
|
boolean |
isFileListingAllowed()
Checks if the user is allowed to list files in the current directory.
|
boolean |
isFileOverwritingAllowed() |
boolean |
isFileRenamingAllowed()
Checks if the user is allowed to rename files in the current directory.
|
boolean |
isFileSharingAllowed()
Checks if the user is allowed to share files in the current directory.
|
boolean |
isFileUploadingAllowed()
Checks if the user is allowed to upload files to the current directory.
|
boolean |
isSubdirectoriesBrowsingAllowed()
Checks if the user is allowed to browse subdirs in the current directory.
|
void |
setDirectoriesListingAllowed(boolean value)
Sets the ability to list subdirs in the current directory.
|
void |
setDirectoryDeletionAllowed(boolean value)
Sets the ability to delete directories in the current directory.
|
void |
setDirectoryMakingAllowed(boolean value)
Sets the ability to make directories in the current directory.
|
void |
setFileAppendingAllowed(boolean value)
Sets the ability to append files in the current directory.
|
void |
setFileDeletionAllowed(boolean value)
Sets the ability to delete files from the current directory.
|
void |
setFileDownloadingAllowed(boolean value)
Sets the ability to download files from the current directory.
|
void |
setFileListingAllowed(boolean value)
Sets the ability to list files in the current directory.
|
void |
setFileOverwritingAllowed(boolean value) |
void |
setFileRenamingAllowed(boolean value)
Sets the ability to rename files in the current directory.
|
void |
setFileSharingAllowed(boolean value)
Sets the ability to share files in the current directory.
|
void |
setFileUploadingAllowed(boolean value)
Sets the ability to upload files to the current directory.
|
void |
setSubdirectoriesBrowsingAllowed(boolean value)
Sets the ability to browse subdirs in the current directory.
|
java.lang.String |
toString() |
public AccessPermissions(boolean fileDownloadingAllowed,
boolean fileUploadingAllowed,
boolean fileOverwritingAllowed,
boolean fileDeletionAllowed,
boolean fileAppendingAllowed,
boolean fileListingAllowed,
boolean fileRenamingAllowed,
boolean fileSharingAllowed,
boolean directoriesListingAllowed,
boolean directoryMakingAllowed,
boolean directoryDeletionAllowed,
boolean subdirectoriesBrowsingAllowed)
public AccessPermissions()
public AccessPermissions(AccessPermissions that)
that - instance to copypublic 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 directorypublic 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 directorypublic boolean isFileOverwritingAllowed()
public void setFileOverwritingAllowed(boolean value)
public 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 directorypublic 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 directorypublic 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 directorypublic 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 directorypublic boolean isFileSharingAllowed()
true if the user is allowed to share files; false otherwisepublic void setFileSharingAllowed(boolean value)
value - if true the user is allowed to share files in the current directorypublic 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 directorypublic 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 directorypublic 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 directorypublic 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 directorypublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2023. Redwood Software Inc. All rights reserved.