|
|
|
@ -8,15 +8,37 @@ namespace Volo.Abp.PermissionManagement; |
|
|
|
|
|
|
|
public interface IPermissionManager |
|
|
|
{ |
|
|
|
Task<PermissionWithGrantedProviders> GetAsync(string permissionName, string providerName, string providerKey); |
|
|
|
|
|
|
|
Task<MultiplePermissionWithGrantedProviders> GetAsync(string[] permissionNames, string provideName, string providerKey); |
|
|
|
|
|
|
|
Task<List<PermissionWithGrantedProviders>> GetAllAsync([NotNull] string providerName, [NotNull] string providerKey); |
|
|
|
|
|
|
|
Task SetAsync(string permissionName, string providerName, string providerKey, bool isGranted); |
|
|
|
|
|
|
|
Task<PermissionGrant> UpdateProviderKeyAsync(PermissionGrant permissionGrant, string providerKey); |
|
|
|
|
|
|
|
Task DeleteAsync(string providerName, string providerKey); |
|
|
|
} |
|
|
|
Task<PermissionWithGrantedProviders> GetAsync( |
|
|
|
string permissionName, |
|
|
|
string providerName, |
|
|
|
string providerKey |
|
|
|
); |
|
|
|
|
|
|
|
Task<MultiplePermissionWithGrantedProviders> GetAsync( |
|
|
|
string[] permissionNames, |
|
|
|
string provideName, |
|
|
|
string providerKey |
|
|
|
); |
|
|
|
|
|
|
|
Task<List<PermissionWithGrantedProviders>> GetAllAsync( |
|
|
|
[NotNull] string providerName, |
|
|
|
[NotNull] string providerKey |
|
|
|
); |
|
|
|
|
|
|
|
Task SetAsync( |
|
|
|
string permissionName, |
|
|
|
string providerName, |
|
|
|
string providerKey, |
|
|
|
bool isGranted |
|
|
|
); |
|
|
|
|
|
|
|
Task<PermissionGrant> UpdateProviderKeyAsync( |
|
|
|
PermissionGrant permissionGrant, |
|
|
|
string providerKey |
|
|
|
); |
|
|
|
|
|
|
|
Task DeleteAsync( |
|
|
|
string providerName, |
|
|
|
string providerKey |
|
|
|
); |
|
|
|
} |