Class FilePermissionEntity
- Namespace
- Dynamicweb.Content.Files
- Assembly
- Dynamicweb.dll
Represents a physical file which can be used with the permission framework to get the PermissionLevel for a given user.
[PermissionEntity("File")]
public sealed class FilePermissionEntity : IPermissionEntity, IPermissionEntityLookup
- Inheritance
-
FilePermissionEntity
- Implements
- Inherited Members
- Extension Methods
Constructors
FilePermissionEntity()
Creates a new instance of the class.
public FilePermissionEntity()
FilePermissionEntity(string)
Creates a new instance of the class.
public FilePermissionEntity(string relativePath)
Parameters
relativePathstringThe relative path to file.
Properties
RelativePath
The relative path to file.
public string RelativePath { get; }
Property Value
Methods
GetPermissionEntityByKey(string)
Attempts to resolve a concrete instance of IPermissionEntity based on a key.
public IPermissionEntity? GetPermissionEntityByKey(string key)
Parameters
keystringThe key used for looking up an instance of IPermissionEntity
Returns
- IPermissionEntity
An instance of IPermissionEntity, if found; otherwise,
null.
- See Also
GetPermissionParents()
Gets the parent folder of this file, for the purposes of inherited permissions.
public IEnumerable<IPermissionEntity> GetPermissionParents()
Returns
Remarks
Return null, if no parent permissions exist