Interface IPermissionSetStore
Defines an interface for a permission set store that retrieves permission set data based on filters.
Namespace: DataWeb.Authorization
Assembly: DataWeb.Core.dll
Syntax
public interface IPermissionSetStore
Properties
Name
Gets the name of the permission set store.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetPermissionSetAsync(PermissionSetFilter, CancellationToken)
Retrieves a single permission set data based on the provided filter.
Declaration
Task<PermissionSetData> GetPermissionSetAsync(PermissionSetFilter filter, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
PermissionSetFilter | filter | A PermissionSetFilter object used to filter the permission sets. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<PermissionSetData> | A task that represents the asynchronous operation, returning a single permission set data. |
GetPermissionSetCachedAsync(string, CancellationToken)
Retrieves a single permission set data from the cache based on the provided name.
Declaration
Task<PermissionSetData> GetPermissionSetCachedAsync(string name, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the permission set to retrieve from the cache. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<PermissionSetData> | A task that represents the asynchronous operation, returning a single permission set data. |
GetPermissionSetsAsync(PermissionSetFilter, CancellationToken)
Retrieves a collection of permission set data based on the provided filter.
Declaration
Task<IEnumerable<PermissionSetData>> GetPermissionSetsAsync(PermissionSetFilter filter, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
PermissionSetFilter | filter | A PermissionSetFilter object used to filter the permission sets. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IEnumerable<PermissionSetData>> | A task that represents the asynchronous operation, returning an enumerable collection of permission set data. |