DataWeb
Search Results for

    Show / Hide Table of Contents

    Interface IPermissionRuleStore

    Defines an interface for a permission rule store that retrieves visibility filters based on user roles.

    Namespace: DataWeb.Authorization
    Assembly: DataWeb.Core.dll
    Syntax
    public interface IPermissionRuleStore

    Properties

    Name

    Gets the name of the permission rule store.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    string

    Methods

    GetListVisibleFilter(string, List<string>)

    Retrieves a filter expression for a list view based on the specified table name and user roles.

    Declaration
    string GetListVisibleFilter(string tableName, List<string> userRoles)
    Parameters
    Type Name Description
    string tableName

    The name of the table for which the filter is being requested.

    List<string> userRoles

    A list of the user's roles.

    Returns
    Type Description
    string

    A filter expression string for the specified table and user roles.

    GetUserVisibleFilter(string, List<string>)

    Retrieves a filter expression for a user view based on the specified table name and user roles.

    Declaration
    string GetUserVisibleFilter(string tableName, List<string> userRoles)
    Parameters
    Type Name Description
    string tableName

    The name of the table for which the filter is being requested.

    List<string> userRoles

    A list of the user's roles.

    Returns
    Type Description
    string

    A filter expression string for the specified table and user roles.

    In this article
    Back to top Generated by DocFX