CKFinder 3 – ASP.NET Connector Documentation
INodeValidator Interface Reference

A validator of Access Control List for files and folders. More...

Public Member Functions

Task ThrowIfReadDeniedAsync (IFolder folder, CancellationToken cancellationToken)
 Asynchronously checks read permissions for a folder and throws exception if read operation is not allowed. More...
 
Task ThrowIfReadDeniedAsync (IFile file, CancellationToken cancellationToken)
 Asynchronously checks read permissions for a file and throws exception if read operation is not allowed. More...
 
Task ThrowIfWriteDeniedAsync (IFile file, CancellationToken cancellationToken)
 Asynchronously checks write permissions for a file and throws exception if write operation is not allowed. More...
 

Detailed Description

A validator of Access Control List for files and folders.

Member Function Documentation

◆ ThrowIfReadDeniedAsync() [1/2]

Task ThrowIfReadDeniedAsync ( IFile  file,
CancellationToken  cancellationToken 
)

Asynchronously checks read permissions for a file and throws exception if read operation is not allowed.

Will throw InvalidExtensionException if file contains not allowed extension.

Will throw FileNotFoundException if read is not allowed.

Parameters
fileA file to check.
cancellationTokenA cancellation token

◆ ThrowIfReadDeniedAsync() [2/2]

Task ThrowIfReadDeniedAsync ( IFolder  folder,
CancellationToken  cancellationToken 
)

Asynchronously checks read permissions for a folder and throws exception if read operation is not allowed.

Will throw FolderNotFoundException if read is not allowed.

Parameters
folderA folder to check.
cancellationTokenA cancellation token.

◆ ThrowIfWriteDeniedAsync()

Task ThrowIfWriteDeniedAsync ( IFile  file,
CancellationToken  cancellationToken 
)

Asynchronously checks write permissions for a file and throws exception if write operation is not allowed.

Will throw InvalidExtensionException if file contains not allowed extension.

Will throw InvalidNameException if file is hidden.

Parameters
fileA file to check.
cancellationTokenA cancellation token

The documentation for this interface was generated from the following file: