mirror of https://github.com/abpframework/abp.git
Browse Source
Removed all usages of JetBrains.Annotations attributes and related imports from resource permission interfaces and context classes. Reformatted method signatures and constructors for better readability and consistency.pull/24374/head
7 changed files with 36 additions and 24 deletions
@ -1,16 +1,33 @@ |
|||||
using System.Security.Claims; |
using System.Security.Claims; |
||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
using JetBrains.Annotations; |
|
||||
|
|
||||
namespace Volo.Abp.Authorization.Permissions.Resources; |
namespace Volo.Abp.Authorization.Permissions.Resources; |
||||
|
|
||||
public interface IResourcePermissionChecker |
public interface IResourcePermissionChecker |
||||
{ |
{ |
||||
Task<bool> IsGrantedAsync([NotNull] string name, string resourceName, string resourceKey); |
Task<bool> IsGrantedAsync( |
||||
|
string name, |
||||
|
string resourceName, |
||||
|
string resourceKey |
||||
|
); |
||||
|
|
||||
Task<bool> IsGrantedAsync(ClaimsPrincipal? claimsPrincipal, [NotNull] string name, string resourceName, string resourceKey); |
Task<bool> IsGrantedAsync( |
||||
|
ClaimsPrincipal? claimsPrincipal, |
||||
|
string name, |
||||
|
string resourceName, |
||||
|
string resourceKey |
||||
|
); |
||||
|
|
||||
Task<MultiplePermissionGrantResult> IsGrantedAsync([NotNull] string[] names, string resourceName, string resourceKey); |
Task<MultiplePermissionGrantResult> IsGrantedAsync( |
||||
|
string[] names, |
||||
|
string resourceName, |
||||
|
string resourceKey |
||||
|
); |
||||
|
|
||||
Task<MultiplePermissionGrantResult> IsGrantedAsync(ClaimsPrincipal? claimsPrincipal, [NotNull] string[] names, string resourceName, string resourceKey); |
Task<MultiplePermissionGrantResult> IsGrantedAsync( |
||||
|
ClaimsPrincipal? claimsPrincipal, |
||||
|
string[] names, |
||||
|
string resourceName, |
||||
|
string resourceKey |
||||
|
); |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue