Show / Hide Table of Contents

Class PermissionManager

Inheritance
object
PermissionManager
Implements
IPermissionManager
ISingletonDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.PermissionManagement
Assembly: Volo.Abp.PermissionManagement.Domain.dll
Syntax
public class PermissionManager : IPermissionManager, ISingletonDependency

Constructors

PermissionManager(IPermissionDefinitionManager, ISimpleStateCheckerManager<PermissionDefinition>, IPermissionGrantRepository, IServiceProvider, IGuidGenerator, IOptions<PermissionManagementOptions>, ICurrentTenant, IDistributedCache<PermissionGrantCacheItem>)

Declaration
public PermissionManager(IPermissionDefinitionManager permissionDefinitionManager, ISimpleStateCheckerManager<PermissionDefinition> simpleStateCheckerManager, IPermissionGrantRepository permissionGrantRepository, IServiceProvider serviceProvider, IGuidGenerator guidGenerator, IOptions<PermissionManagementOptions> options, ICurrentTenant currentTenant, IDistributedCache<PermissionGrantCacheItem> cache)
Parameters
Type Name Description
IPermissionDefinitionManager permissionDefinitionManager
ISimpleStateCheckerManager<PermissionDefinition> simpleStateCheckerManager
IPermissionGrantRepository permissionGrantRepository
IServiceProvider serviceProvider
IGuidGenerator guidGenerator
IOptions<PermissionManagementOptions> options
ICurrentTenant currentTenant
IDistributedCache<PermissionGrantCacheItem> cache

Properties

Cache

Declaration
protected IDistributedCache<PermissionGrantCacheItem> Cache { get; }
Property Value
Type Description
IDistributedCache<PermissionGrantCacheItem>

CurrentTenant

Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
Type Description
ICurrentTenant

GuidGenerator

Declaration
protected IGuidGenerator GuidGenerator { get; }
Property Value
Type Description
IGuidGenerator

ManagementProviders

Declaration
protected IReadOnlyList<IPermissionManagementProvider> ManagementProviders { get; }
Property Value
Type Description
IReadOnlyList<IPermissionManagementProvider>

Options

Declaration
protected PermissionManagementOptions Options { get; }
Property Value
Type Description
PermissionManagementOptions

PermissionDefinitionManager

Declaration
protected IPermissionDefinitionManager PermissionDefinitionManager { get; }
Property Value
Type Description
IPermissionDefinitionManager

PermissionGrantRepository

Declaration
protected IPermissionGrantRepository PermissionGrantRepository { get; }
Property Value
Type Description
IPermissionGrantRepository

SimpleStateCheckerManager

Declaration
protected ISimpleStateCheckerManager<PermissionDefinition> SimpleStateCheckerManager { get; }
Property Value
Type Description
ISimpleStateCheckerManager<PermissionDefinition>

Methods

DeleteAsync(string, string)

Declaration
public virtual Task DeleteAsync(string providerName, string providerKey)
Parameters
Type Name Description
string providerName
string providerKey
Returns
Type Description
Task

GetAllAsync(string, string)

Declaration
public virtual Task<List<PermissionWithGrantedProviders>> GetAllAsync(string providerName, string providerKey)
Parameters
Type Name Description
string providerName
string providerKey
Returns
Type Description
Task<List<PermissionWithGrantedProviders>>

GetAsync(string, string, string)

Declaration
public virtual Task<PermissionWithGrantedProviders> GetAsync(string permissionName, string providerName, string providerKey)
Parameters
Type Name Description
string permissionName
string providerName
string providerKey
Returns
Type Description
Task<PermissionWithGrantedProviders>

GetAsync(string[], string, string)

Declaration
public virtual Task<MultiplePermissionWithGrantedProviders> GetAsync(string[] permissionNames, string providerName, string providerKey)
Parameters
Type Name Description
string[] permissionNames
string providerName
string providerKey
Returns
Type Description
Task<MultiplePermissionWithGrantedProviders>

GetInternalAsync(PermissionDefinition, string, string)

Declaration
protected virtual Task<PermissionWithGrantedProviders> GetInternalAsync(PermissionDefinition permission, string providerName, string providerKey)
Parameters
Type Name Description
PermissionDefinition permission
string providerName
string providerKey
Returns
Type Description
Task<PermissionWithGrantedProviders>

GetInternalAsync(PermissionDefinition[], string, string)

Declaration
protected virtual Task<MultiplePermissionWithGrantedProviders> GetInternalAsync(PermissionDefinition[] permissions, string providerName, string providerKey)
Parameters
Type Name Description
PermissionDefinition[] permissions
string providerName
string providerKey
Returns
Type Description
Task<MultiplePermissionWithGrantedProviders>

SetAsync(string, string, string, bool)

Declaration
public virtual Task SetAsync(string permissionName, string providerName, string providerKey, bool isGranted)
Parameters
Type Name Description
string permissionName
string providerName
string providerKey
bool isGranted
Returns
Type Description
Task

UpdateProviderKeyAsync(PermissionGrant, string)

Declaration
public virtual Task<PermissionGrant> UpdateProviderKeyAsync(PermissionGrant permissionGrant, string providerKey)
Parameters
Type Name Description
PermissionGrant permissionGrant
string providerKey
Returns
Type Description
Task<PermissionGrant>

Implements

IPermissionManager
ISingletonDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform