Interface IPermissionDefinitionContext
Assembly: Volo.Abp.Authorization.dll
Syntax
public interface IPermissionDefinitionContext
Properties
ServiceProvider
Declaration
IServiceProvider ServiceProvider { get; }
Property Value
Type |
Description |
IServiceProvider |
|
Methods
AddGroup(String, ILocalizableString, MultiTenancySides)
Declaration
PermissionGroupDefinition AddGroup(string name, ILocalizableString displayName = null, MultiTenancySides multiTenancySide = default(MultiTenancySides))
Parameters
Returns
GetGroup(String)
Gets a pre-defined permission group.
Throws if can not find the given group.
Declaration
PermissionGroupDefinition GetGroup(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
Name of the group
|
Returns
GetGroupOrNull(String)
Tries to get a pre-defined permission group.
Returns null if can not find the given group.
Declaration
PermissionGroupDefinition GetGroupOrNull(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
Name of the group
|
Returns
GetPermissionOrNull(String)
Declaration
PermissionDefinition GetPermissionOrNull(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
RemoveGroup(String)
Declaration
void RemoveGroup(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Extension Methods