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 |
---|---|---|
ServiceAccessor<IAsyncDatabaseExecutor> | 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.String | userOrRoleName | |
SecurityEntityType | securityEntityType |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
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 |
---|---|---|
PermissionType | permission |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<SecurityEntity>> |
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 |
---|---|---|
PermissionType | permission | |
System.Collections.Generic.IEnumerable<SecurityEntity> | permissions |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |