DataWeb
Search Results for

    Show / Hide Table of Contents

    Interface IPermissionRule

    Represents a list of permission rules and provides methods to evaluate them.

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

    Methods

    GetIsVisibleFilter(string)

    Retrieves a filter expression based on the visibility rules for the specified table.

    Declaration
    string GetIsVisibleFilter(string tableName)
    Parameters
    Type Name Description
    string tableName

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

    Returns
    Type Description
    string

    A filter expression string for the specified table.

    IsWriteAsync(NavigationContext, ContextItem)

    Determines if the current user has write permissions for the specified context item.

    Declaration
    Task<bool> IsWriteAsync(NavigationContext navigationContext, ContextItem item)
    Parameters
    Type Name Description
    NavigationContext navigationContext

    The NavigationContext containing information about the current navigation request.

    ContextItem item

    The ContextItem for which write permissions are being checked.

    Returns
    Type Description
    Task<bool>

    A task that represents the asynchronous operation, returning true if the user has write permissions, false otherwise.

    In this article
    Back to top Generated by DocFX