Class PermissionDB
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Get and set permission information for roles/users.
Inherited Members
Namespace: EPiServer.DataAccess.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[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 |
---|---|---|
IDatabase |
databaseHandler | |
IPrincipal |
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. |
userOrRoleName | |
Security |
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 |
---|---|---|
Permission |
permission |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Permission |
permission | |
System. |
permissions |