Show / Hide Table of Contents

    Interface ISecuritySession

    Security session interface

    Namespace: XData.Interfaces
    Assembly: XData.docfx.dll
    Syntax
    public interface ISecuritySession

    Properties

    | Improve this Doc View Source

    IsSupervisor

    Current user is supervisor flag

    Declaration
    bool IsSupervisor { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Roles

    Current user roles list

    Declaration
    string[] Roles { get; }
    Property Value
    Type Description
    String[]
    | Improve this Doc View Source

    UserName

    Current user name

    Declaration
    string UserName { get; }
    Property Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    FilterGrantedObjects<T>(String, Expression)

    Converts initial IQueryable expression filtering granted objects only

    Declaration
    Expression FilterGrantedObjects<T>(string context, Expression allDataExpr)
        where T : class, IDataObject, new()
    Parameters
    Type Name Description
    String context

    Context name

    Expression allDataExpr

    Initial IQueryable expression

    Returns
    Type Description
    Expression

    Modified IQueryable expression

    Type Parameters
    Name Description
    T

    Data object type

    | Improve this Doc View Source

    GetGrantedActions<T>(String)

    Returns list of granted actions for current user

    Declaration
    string[] GetGrantedActions<T>(string context = null)
        where T : class, IDataObject, new()
    Parameters
    Type Name Description
    String context

    Context name

    Returns
    Type Description
    String[]

    Actions list

    Type Parameters
    Name Description
    T

    Data object type

    | Improve this Doc View Source

    GetRestrictedProperties<T>(String)

    Returns list of restricted properties for current user

    Declaration
    string[] GetRestrictedProperties<T>(string context = null)
        where T : class, IDataObject, new()
    Parameters
    Type Name Description
    String context

    Context name

    Returns
    Type Description
    String[]

    Properties name list

    Type Parameters
    Name Description
    T

    Data object type

    Extension Methods

    SerializationExtensions.ToXml<T>(T)
    CollectionsExtensions.SetValue<TKey, T>(TKey, T)
    CollectionsExtensions.AsEnum<T>(T)
    DataObjectQueryableExtensions.CompareVariable(Object, FilterOperation, String)
    Processing.Do<T>(T, Action<IProcess<T>>[])
    TypeExtensions.TryConvert<T, TResult>(T, Func<T, TResult>)
    TypeExtensions.TryConvert<T, TResult>(T, Func<T, TResult>, TResult)
    TypeExtensions.ChangeType<T>(Object)
    TypeExtensions.ChangeType(Object, Type)
    TypeExtensions.InvokeMethod<TRet>(Object, Type[], Expression<Func<TRet>>, BindingFlags)
    TypeExtensions.InvokeMethod(Object, Type[], Expression<Action>, BindingFlags)
    TypeExtensions.InvokeMethod<TRet>(Object, Expression<Func<TRet>>, BindingFlags)
    TypeExtensions.InvokeMethod(Object, Expression<Action>, BindingFlags)
    SqlBlockExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IBlockQueryAdapter, TResult>>)
    QueryDescriptionExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IQueryStructureAdapter, TResult>>)
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX