Class PermissionSubset
- Namespace
- Dynamicweb.Security.Permissions
- Assembly
- Dynamicweb.Core.dll
Represents a subset of a permission entity.
public class PermissionSubset : IPermissionEntity
- Inheritance
-
PermissionSubset
- Implements
- Inherited Members
- Extension Methods
Constructors
PermissionSubset(string, IPermissionEntity)
Instantiates a permission subset with a specified permission sub name and parent.
public PermissionSubset(string permissionSubName, IPermissionEntity parent)
Parameters
permissionSubName
stringPermission subname
parent
IPermissionEntityPermission parent
Exceptions
- InvalidOperationException
Thrown if
parent
is a subset. Creating a subset for a subset is not allowed.
Methods
GetPermissionKey()
Gets the unique key for this permission entity.
public string GetPermissionKey()
Returns
- string
Permission key
GetPermissionName()
Gets the permission name.
public string GetPermissionName()
Returns
- string
Permission name
GetPermissionParents()
Gets the parents of this permission entity, for the purposes of inherited permissions.
public IEnumerable<IPermissionEntity> GetPermissionParents()
Returns
- IEnumerable<IPermissionEntity>
A sequence of direct parents to this entity
GetPermissionSubName()
Gets the permission subname.
public string GetPermissionSubName()
Returns
- string
Permission subname