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 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 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 |
isFileOverwritingAllowed() |
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 |
setFileOverwritingAllowed(boolean value) |
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() |
public AccessPermissions(boolean fileDownloadingAllowed,
boolean fileUploadingAllowed,
boolean fileOverwritingAllowed,
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 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 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 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 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.ObjectCopyright © 2009-2021. Advanced Systems Concepts Inc. All rights reserved.