Class PermissionRuleStore
Implements
Inherited Members
Namespace: DataWeb.Authorization.SqlServer
Assembly: DataWeb.Data.SqlServer.dll
Syntax
public class PermissionRuleStore : IPermissionRuleStore
Properties
Name
Gets the name of the store implementation.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetListVisibleFilter(string, List<string>)
Returns a SQL filter expression that restricts list visibility based on the user's roles.
Declaration
public string GetListVisibleFilter(string tableName, List<string> userRoles)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName | The name of the table to apply the filter on. Must contain only alphanumeric characters, hyphens, underscores or dots. |
| List<string> | userRoles | The list of roles assigned to the current user. |
Returns
| Type | Description |
|---|---|
| string | A SQL AND filter fragment, or Empty if |
GetUserVisibleFilter(string, List<string>)
Returns a SQL filter expression that restricts user visibility by excluding developer-only records.
Declaration
public string GetUserVisibleFilter(string tableName, List<string> userRoles)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName | The name of the table to apply the filter on. Must contain only alphanumeric characters, hyphens, underscores or dots. |
| List<string> | userRoles | The list of roles assigned to the current user. |
Returns
| Type | Description |
|---|---|
| string | A SQL AND filter fragment. |