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
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
[ServiceConfiguration]
public class PermissionDB : DataAccessBase

Constructors

PermissionDB(IDatabaseHandler, IPrincipalAccessor)

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

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

Methods

ClearPermissionListForMembership(String, SecurityEntityType)

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)

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>

ListRolesForPermission(Int32)

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
[Obsolete("Use PermissionDB.ListRolesForPermission(string permission")]
public DataTable ListRolesForPermission(int permission)
Parameters
Type Name Description
System.Int32 permission
Returns
Type Description
System.Data.DataTable

SaveRolesForPermission(PermissionType, IEnumerable<SecurityEntity>)

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

SaveRolesForPermission(Int32, DataTable)

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
[Obsolete("Use PermissionDB.SaveRolesForPermission(string permission, DataTable table")]
public void SaveRolesForPermission(int permission, DataTable table)
Parameters
Type Name Description
System.Int32 permission
System.Data.DataTable table

Extension Methods