Class PermissionSubset
- Namespace
- Dynamicweb.Security.Permissions
- Assembly
- Dynamicweb.Core.dll
Represents a subset of a permission entity.
- Inheritance
-
Permission
Subset
- Implements
- Inherited Members
- Extension Methods
Constructors
PermissionSubset(string, IPermissionEntity)
Instantiates a permission subset with a specified permission sub name and parent.
Parameters
permissionSubName
stringPermission subname
parent
IPermissionEntity Permission parent
Exceptions
- Invalid
Operation Exception 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.
Returns
- string
Permission key
GetPermissionName()
Gets the permission name.
Returns
- string
Permission name
GetPermissionParents()
Gets the parents of this permission entity, for the purposes of inherited permissions.
Returns
- IEnumerable<IPermission
Entity > A sequence of direct parents to this entity
GetPermissionSubName()
Gets the permission subname.
Returns
- string
Permission subname