mirror of https://github.com/abpframework/abp.git
committed by
GitHub
10 changed files with 214 additions and 70 deletions
@ -0,0 +1,26 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
|
||||
|
namespace Volo.Abp.PermissionManagement |
||||
|
{ |
||||
|
public class MultiplePermissionValueProviderGrantInfo |
||||
|
{ |
||||
|
public Dictionary<string, PermissionValueProviderGrantInfo> Result { get; } |
||||
|
|
||||
|
public MultiplePermissionValueProviderGrantInfo() |
||||
|
{ |
||||
|
Result = new Dictionary<string, PermissionValueProviderGrantInfo>(); |
||||
|
} |
||||
|
|
||||
|
public MultiplePermissionValueProviderGrantInfo(string[] names) |
||||
|
{ |
||||
|
Check.NotNull(names, nameof(names)); |
||||
|
|
||||
|
Result = new Dictionary<string, PermissionValueProviderGrantInfo>(); |
||||
|
|
||||
|
foreach (var name in names) |
||||
|
{ |
||||
|
Result.Add(name, PermissionValueProviderGrantInfo.NonGranted); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
|
||||
|
namespace Volo.Abp.PermissionManagement |
||||
|
{ |
||||
|
public class MultiplePermissionWithGrantedProviders |
||||
|
{ |
||||
|
public List<PermissionWithGrantedProviders> Result { get; } |
||||
|
|
||||
|
public MultiplePermissionWithGrantedProviders() |
||||
|
{ |
||||
|
Result = new List<PermissionWithGrantedProviders>(); |
||||
|
} |
||||
|
|
||||
|
public MultiplePermissionWithGrantedProviders(string[] names) |
||||
|
{ |
||||
|
Check.NotNull(names, nameof(names)); |
||||
|
|
||||
|
Result = new List<PermissionWithGrantedProviders>(); |
||||
|
|
||||
|
foreach (var name in names) |
||||
|
{ |
||||
|
Result.Add(new PermissionWithGrantedProviders(name, false)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue