Class PermissionDB

Get and set permission information for roles/users. This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

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

Constructors

PermissionDB(IDatabaseHandler)

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

Declaration
public PermissionDB(IDatabaseHandler databaseHandler)
Parameters
Type Name Description
IDatabaseHandler databaseHandler

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