Class PermissionControlledFile
- Namespace
- Dynamicweb.Content.Files
- Assembly
- Dynamicweb.dll
A permission controlled file can be used with the permission framework to get the PermissionLevel for a given user.
public class PermissionControlledFile : IPermissionLookup, IPermissionControlled
- Inheritance
-
PermissionControlledFile
- Implements
- Inherited Members
Constructors
PermissionControlledFile()
public PermissionControlledFile()
PermissionControlledFile(string)
Creates a new instance of the class.
public PermissionControlledFile(string relativePath)
Parameters
relativePath
string- The relative path to file.
Properties
RelativePath
The relative path to file.
public string RelativePath { get; set; }
Property Value
Methods
GetByKey(string)
Can be used to look up a concrete object based upon the key.
public IPermissionControlled GetByKey(string key)
Parameters
key
string- Identifier
Returns
- IPermissionControlled
- permissionControlled
GetParent()
Gets the parent folder of this file, for the purposes of inherited permissions.
public IPermissionControlled GetParent()
Returns
Remarks
Return null, if no parent permissions exist
GetPermissionIdentifier()
Combination of values that form a unique identifier.
public UnifiedPermissionIdentifier GetPermissionIdentifier()
Returns
- UnifiedPermissionIdentifier
- Unique identifier.