DataWeb
Search Results for

    Show / Hide Table of Contents

    Class PermissionRuleStore

    Inheritance
    object
    PermissionRuleStore
    Implements
    IPermissionRuleStore
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 userRoles is empty.

    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.

    Implements

    IPermissionRuleStore
    In this article
    Back to top Generated by DocFX