Click or drag to resize

FileManagerAccessControl Class

Defines an access control for a folder inside a root folder.
Inheritance Hierarchy
SystemObject
  UniqueKeyedItemFileManagerAccessControl
    GleamTech.FileUltimate.AspNet.UIFileManagerAccessControl

Namespace:  GleamTech.FileUltimate.AspNet.UI
Assembly:  GleamTech.FileUltimate (in GleamTech.FileUltimate.dll) Version: 7.9.1
Syntax
public sealed class FileManagerAccessControl : UniqueKeyedItem<FileManagerAccessControl>

The FileManagerAccessControl type exposes the following members.

Constructors
  NameDescription
Public methodFileManagerAccessControl
Initializes a new instance of the FileManagerAccessControl class
Top
Properties
  NameDescription
Public propertyCode exampleAllowedFileTypes
Gets or sets the file patterns that are allowed. This property restricts all actions (List, Delete, Rename, Copy, Move, Extract, Compress, Download and Upload). This means only allowed file types will be visible and manageable in the file list. If not set, any file type is allowed ("*").

DeniedFileTypes take precedence over AllowedFileTypes. For instance, when AllowedFileTypes is set to "*.jpg|*.gif" and DeniedFileTypes is set to "*.gif", only "*.jpg" will be allowed.

When combining patterns in string representation, they should be separated by vertical bar (|).

In a pattern, you can use these wildcards:

  • * matches zero or more characters.
  • ? matches exactly one character.

Some pattern examples:

  • *.* matches files with any extension (does not match files without an extension)
  • *.jpg matches files only with jpg extension
  • picture*.jpg matches files only with jpg extension and which names start with 'picture'
  • picture.* matches files with any extension and which names start with 'picture'
  • picture matches files with no extension and which names are exactly 'picture'
  • *.jp* matches files like 'picture.jpg', 'otherpicture.jpe', 'somepicture.jpeg' etc.
  • *.jp? matches files like 'picture.jpg', 'otherpicture.jpe' etc.
  • picture?.jpg matches files like 'picture1.jpg', 'picture2.jpg', 'pictures.jpg' etc.

Public propertyCode exampleAllowedPermissions
Gets or sets a value that specifies the allowed permissions for the access control. The default is None.

DeniedPermissions take precedence over AllowedPermissions. For instance, when AllowedPermissions is set to Full and DeniedPermissions is set to Download and Upload, all permissions except Download and Upload will be allowed.

When combining permissions, they should be separated by comma in string and by bitwise 'or' operator in code (| in C# and OR in VB).

Public propertyCode exampleDeniedFileTypes
Gets or sets specifies the file patterns that are denied. Denied patterns take precedence over allowed patterns. This property restricts all actions (List, Delete, Rename, Copy, Move, Extract, Compress, Download and Upload). This means only allowed file types will be visible and manageable in the file list. If not set, no file type is denied ("").

DeniedFileTypes take precedence over AllowedFileTypes. For instance, when AllowedFileTypes is set to "*.jpg|*.gif" and DeniedFileTypes is set to "*.gif", only "*.jpg" will be allowed.

When combining patterns in string representation, they should be separated by vertical bar (|).

In a pattern, you can use these wildcards:

  • * matches zero or more characters.
  • ? matches exactly one character.

Some pattern examples:

  • *.* matches files with any extension (does not match files without an extension)
  • *.jpg matches files only with jpg extension
  • picture*.jpg matches files only with jpg extension and which names start with 'picture'
  • picture.* matches files with any extension and which names start with 'picture'
  • picture matches files with no extension and which names are exactly 'picture'
  • *.jp* matches files like 'picture.jpg', 'otherpicture.jpe', 'somepicture.jpeg' etc.
  • *.jp? matches files like 'picture.jpg', 'otherpicture.jpe' etc.
  • picture?.jpg matches files like 'picture1.jpg', 'picture2.jpg', 'pictures.jpg' etc.

Public propertyCode exampleDeniedPermissions
Gets or sets a value that specifies the denied permissions for the access control. The default is None.

DeniedPermissions take precedence over AllowedPermissions. For instance, when AllowedPermissions is set to Full and DeniedPermissions is set to Download and Upload, all permissions except Download and Upload will be allowed.

When combining permissions, they should be separated by comma in string and by bitwise 'or' operator in code (| in C# and OR in VB).

Public propertyLimitDiskUsage
Gets or sets a value that specifies whether to override the quota setting of the parent folder, i.e. when you need unlimited disk space in a subfolder of a parent folder with limited disk space. When Quota property is set, LimitDiskUsage is set to true implicitly.
Public propertyPath
Gets or sets the relative path of a root folder where this access control will be applied to. For instance, to apply the access control to the root level, the value should be set to \. To apply the access control to a subfolder named subfolder1, the value should be set to \subfolder1. This property can not be empty and should start with backslash (\) or forward slash (/). By default, a subfolder inherits from first parent with an access control unless there is an explicit access control for that subfolder.

You can also use these wildcards in a path:

  • The ? wildcard character matches a single character.
  • The * wildcard character matches zero or more characters.
  • The ** wildcard character sequence matches a partial path.

For example, if you set Path="\**\*MatchMe*", this access control will appy to the folders containing MatchMe keyword in name under both root folder and under root folder's all subfolders (recursive).
Public propertyQuota
Gets or sets the quota limit. It can be set in <Number> B/KB/MB/GB/TB format (eg. 1024 or 1024 B, 200 KB, 30 MB, 5 GB, 1 TB). If omitted, the quota will be unlimited.
Top
Fields
  NameDescription
Public fieldStatic memberRoot
The path for root level.
Public fieldStatic memberSeparator
The path separator.
Top
See Also