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
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
Methods
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
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
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
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