November Happy Hour will be moved to Thursday December 5th.

Class PermissionDB

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Get and set permission information for roles/users.

Inheritance
System.Object
PermissionDB
Namespace: EPiServer.DataAccess.Internal
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
[ServiceConfiguration]
public class PermissionDB : DataAccessBase

Constructors

PermissionDB(IDatabaseExecutor, IPrincipalAccessor)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public PermissionDB(IDatabaseExecutor databaseHandler, IPrincipalAccessor principalAccessor)
Parameters
Type Name Description
IDatabaseExecutor databaseHandler
IPrincipalAccessor principalAccessor

Methods

ClearPermissionListForMembership(String, SecurityEntityType)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Clears the permission list for a given membership. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public void ClearPermissionListForMembership(string userOrRoleName, SecurityEntityType securityEntityType)
Parameters
Type Name Description
System.String userOrRoleName
SecurityEntityType securityEntityType

ListRolesForPermission(PermissionType)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IEnumerable<SecurityEntity> ListRolesForPermission(PermissionType permission)
Parameters
Type Name Description
PermissionType permission
Returns
Type Description
System.Collections.Generic.IEnumerable<SecurityEntity>

SaveRolesForPermission(PermissionType, IEnumerable<SecurityEntity>)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public void SaveRolesForPermission(PermissionType permission, IEnumerable<SecurityEntity> permissions)
Parameters
Type Name Description
PermissionType permission
System.Collections.Generic.IEnumerable<SecurityEntity> permissions

Extension Methods