Class PermissionManager
- Namespace
- Dynamicweb.Security.Permissions
- Assembly
- Dynamicweb.Core.dll
Provides methods for retrieving and managing permissions within the current permission context.
- Inheritance
-
Permission
Manager
- Inherited Members
Methods
GetExplicitPermissionsByType<T>()
Gets all explicit permissions for the specified entity type.
Returns
- IEnumerable<Permission>
Permissions for the specified entity type, if found; otherwise, an empty sequence.
Type Parameters
T
Permission entity type to get permissions for
GetPermissionIdentifier(IPermissionEntity)
Parameters
entity
IPermissionEntity
Returns
GetPermissionLevel(IPermissionEntity)
Gets the permission level for the specified entity.
Parameters
entity
IPermissionEntity Entity to get permission for
Returns
- Permission
Level Permission level
HasPermissionLevel(IPermissionEntity, PermissionLevel)
Checks the current permission level for the specified entity.
Parameters
entity
IPermissionEntity Permission entity
level
PermissionLevel Permission level
Returns
- bool
true
, if the specified permission level is satisfied by current permission; otherwise,false
.