Class PermissionDB
Get and set permission information for roles/users.
Inheritance
System.Object
PermissionDB
Namespace: EPiServer.DataAccess.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class PermissionDB : Object
Constructors
PermissionDB(ServiceAccessor<IAsyncDatabaseExecutor>)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public PermissionDB(ServiceAccessor<IAsyncDatabaseExecutor> databaseHandler)
Parameters
Type | Name | Description |
---|---|---|
Service |
databaseHandler |
Methods
ClearPermissionListForMembershipAsync(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 Task ClearPermissionListForMembershipAsync(string userOrRoleName, SecurityEntityType securityEntityType)
Parameters
Type | Name | Description |
---|---|---|
System. |
userOrRoleName | |
Security |
securityEntityType |
Returns
Type | Description |
---|---|
System. |
ListRolesForPermissionAsync(PermissionType)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public Task<IEnumerable<SecurityEntity>> ListRolesForPermissionAsync(PermissionType permission)
Parameters
Type | Name | Description |
---|---|---|
Permission |
permission |
Returns
Type | Description |
---|---|
System. |
SaveRolesForPermissionAsync(PermissionType, IEnumerable<SecurityEntity>)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public Task SaveRolesForPermissionAsync(PermissionType permission, IEnumerable<SecurityEntity> permissions)
Parameters
Type | Name | Description |
---|---|---|
Permission |
permission | |
System. |
permissions |
Returns
Type | Description |
---|---|
System. |