Show / Hide Table of Contents

Class PermissionManagementModal

Inheritance
object
ComponentBase
OwningComponentBase
AbpComponentBase
PermissionManagementModal
Implements
IComponent
IHandleEvent
IHandleAfterRender
IDisposable
Inherited Members
AbpComponentBase.LazyGetRequiredService<TService>(ref TService)
AbpComponentBase.LazyGetRequiredService<TRef>(Type, ref TRef)
AbpComponentBase.LazyGetService<TService>(ref TService)
AbpComponentBase.LazyGetService<TRef>(Type, ref TRef)
AbpComponentBase.LazyGetNonScopedRequiredService<TService>(ref TService)
AbpComponentBase.LazyGetNonScopedRequiredService<TRef>(Type, ref TRef)
AbpComponentBase.LazyGetNonScopedService<TService>(ref TService)
AbpComponentBase.LazyGetNonScopedService<TRef>(Type, ref TRef)
AbpComponentBase.CreateLocalizer()
AbpComponentBase.HandleErrorAsync(Exception)
AbpComponentBase.StringLocalizerFactory
AbpComponentBase.L
AbpComponentBase.LocalizationResource
AbpComponentBase.Logger
AbpComponentBase.LoggerFactory
AbpComponentBase.AuthorizationService
AbpComponentBase.CurrentUser
AbpComponentBase.CurrentTenant
AbpComponentBase.Message
AbpComponentBase.Notify
AbpComponentBase.UserExceptionInformer
AbpComponentBase.AlertManager
AbpComponentBase.Clock
AbpComponentBase.Alerts
AbpComponentBase.ObjectMapper
AbpComponentBase.ObjectMapperContext
AbpComponentBase.NonScopedServices
OwningComponentBase.Dispose(bool)
OwningComponentBase.IsDisposed
OwningComponentBase.ScopedServices
ComponentBase.OnInitialized()
ComponentBase.OnInitializedAsync()
ComponentBase.OnParametersSet()
ComponentBase.OnParametersSetAsync()
ComponentBase.StateHasChanged()
ComponentBase.ShouldRender()
ComponentBase.OnAfterRender(bool)
ComponentBase.OnAfterRenderAsync(bool)
ComponentBase.InvokeAsync(Action)
ComponentBase.InvokeAsync(Func<Task>)
ComponentBase.DispatchExceptionAsync(Exception)
ComponentBase.SetParametersAsync(ParameterView)
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.PermissionManagement.Blazor.Components
Assembly: Volo.Abp.PermissionManagement.Blazor.dll
Syntax
public class PermissionManagementModal : AbpComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Constructors

PermissionManagementModal()

Declaration
public PermissionManagementModal()

Fields

_allGroups

Declaration
protected List<PermissionGroupDto> _allGroups
Field Value
Type Description
List<PermissionGroupDto>

_disabledPermissions

Declaration
protected List<PermissionGrantInfoDto> _disabledPermissions
Field Value
Type Description
List<PermissionGrantInfoDto>

_entityDisplayName

Declaration
protected string _entityDisplayName
Field Value
Type Description
string

_grantedPermissionCount

Declaration
protected int _grantedPermissionCount
Field Value
Type Description
int

_groups

Declaration
protected List<PermissionGroupDto> _groups
Field Value
Type Description
List<PermissionGroupDto>

_modal

Declaration
protected Modal _modal
Field Value
Type Description
Modal

_notGrantedPermissionCount

Declaration
protected int _notGrantedPermissionCount
Field Value
Type Description
int

_permissionDepths

Declaration
protected Dictionary<string, int> _permissionDepths
Field Value
Type Description
Dictionary<string, int>

_permissionGroupSearchText

Declaration
protected string _permissionGroupSearchText
Field Value
Type Description
string

_providerKey

Declaration
protected string _providerKey
Field Value
Type Description
string

_providerName

Declaration
protected string _providerName
Field Value
Type Description
string

_selectAllDisabled

Declaration
protected bool _selectAllDisabled
Field Value
Type Description
bool

_selectedTabName

Declaration
protected string _selectedTabName
Field Value
Type Description
string

Properties

CurrentApplicationConfigurationCacheResetService

Declaration
[Inject]
protected ICurrentApplicationConfigurationCacheResetService CurrentApplicationConfigurationCacheResetService { get; set; }
Property Value
Type Description
ICurrentApplicationConfigurationCacheResetService

GrantAll

Declaration
protected bool GrantAll { get; set; }
Property Value
Type Description
bool

LocalizationOptions

Declaration
[Inject]
protected IOptions<AbpLocalizationOptions> LocalizationOptions { get; set; }
Property Value
Type Description
IOptions<AbpLocalizationOptions>

PermissionAppService

Declaration
[Inject]
protected IPermissionAppService PermissionAppService { get; set; }
Property Value
Type Description
IPermissionAppService

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type Name Description
RenderTreeBuilder __builder
Overrides
ComponentBase.BuildRenderTree(RenderTreeBuilder)

CloseModal()

Declaration
protected Task CloseModal()
Returns
Type Description
Task

ClosingModal(ModalClosingEventArgs)

Declaration
protected virtual Task ClosingModal(ModalClosingEventArgs eventArgs)
Parameters
Type Name Description
ModalClosingEventArgs eventArgs
Returns
Type Description
Task

GetChildPermissions(List<PermissionGrantInfoDto>, List<PermissionGrantInfoDto>, PermissionGrantInfoDto)

Declaration
protected void GetChildPermissions(List<PermissionGrantInfoDto> allChildPermissions, List<PermissionGrantInfoDto> permissions, PermissionGrantInfoDto permission)
Parameters
Type Name Description
List<PermissionGrantInfoDto> allChildPermissions
List<PermissionGrantInfoDto> permissions
PermissionGrantInfoDto permission

GetChildPermissions(PermissionGroupDto, PermissionGrantInfoDto)

Declaration
protected List<PermissionGrantInfoDto> GetChildPermissions(PermissionGroupDto permissionGroup, PermissionGrantInfoDto permission)
Parameters
Type Name Description
PermissionGroupDto permissionGroup
PermissionGrantInfoDto permission
Returns
Type Description
List<PermissionGrantInfoDto>

GetNormalizedGroupName(string)

Declaration
protected virtual string GetNormalizedGroupName(string name)
Parameters
Type Name Description
string name
Returns
Type Description
string

GetParentPermission(PermissionGroupDto, PermissionGrantInfoDto)

Declaration
protected PermissionGrantInfoDto GetParentPermission(PermissionGroupDto permissionGroup, PermissionGrantInfoDto permission)
Parameters
Type Name Description
PermissionGroupDto permissionGroup
PermissionGrantInfoDto permission
Returns
Type Description
PermissionGrantInfoDto

GetPermissionDepthOrDefault(string)

Declaration
protected virtual int GetPermissionDepthOrDefault(string name)
Parameters
Type Name Description
string name
Returns
Type Description
int

GetShownName(PermissionGrantInfoDto)

Declaration
protected virtual string GetShownName(PermissionGrantInfoDto permissionGrantInfo)
Parameters
Type Name Description
PermissionGrantInfoDto permissionGrantInfo
Returns
Type Description
string

GroupGrantAllChanged(bool, PermissionGroupDto)

Declaration
protected virtual void GroupGrantAllChanged(bool value, PermissionGroupDto permissionGroup)
Parameters
Type Name Description
bool value
PermissionGroupDto permissionGroup

IsDisabledPermission(PermissionGrantInfoDto)

Declaration
protected bool IsDisabledPermission(PermissionGrantInfoDto permissionGrantInfo)
Parameters
Type Name Description
PermissionGrantInfoDto permissionGrantInfo
Returns
Type Description
bool

IsPermissionGroupDisabled(PermissionGroupDto)

Declaration
protected virtual bool IsPermissionGroupDisabled(PermissionGroupDto group)
Parameters
Type Name Description
PermissionGroupDto group
Returns
Type Description
bool

NormalizePermissionGroup()

Declaration
protected void NormalizePermissionGroup()

OnPermissionGroupSearchTextChangedAsync(string)

Declaration
protected virtual Task OnPermissionGroupSearchTextChangedAsync(string value)
Parameters
Type Name Description
string value
Returns
Type Description
Task

OnSelectedTabChangedAsync(string)

Declaration
protected virtual Task OnSelectedTabChangedAsync(string name)
Parameters
Type Name Description
string name
Returns
Type Description
Task

OpenAsync(string, string, string)

Declaration
public virtual Task OpenAsync(string providerName, string providerKey, string entityDisplayName = null)
Parameters
Type Name Description
string providerName
string providerKey
string entityDisplayName
Returns
Type Description
Task

PermissionChanged(bool, PermissionGroupDto, PermissionGrantInfoDto)

Declaration
protected virtual void PermissionChanged(bool value, PermissionGroupDto permissionGroup, PermissionGrantInfoDto permission)
Parameters
Type Name Description
bool value
PermissionGroupDto permissionGroup
PermissionGrantInfoDto permission

SaveAsync()

Declaration
protected virtual Task SaveAsync()
Returns
Type Description
Task

SetPermissionDepths(List<PermissionGrantInfoDto>, string, int)

Declaration
protected virtual void SetPermissionDepths(List<PermissionGrantInfoDto> permissions, string currentParent, int currentDepth)
Parameters
Type Name Description
List<PermissionGrantInfoDto> permissions
string currentParent
int currentDepth

Implements

IComponent
IHandleEvent
IHandleAfterRender
IDisposable

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