Search Results for

    Show / Hide Table of Contents

    Class MemberAccessPermissions

    Container for permissions of the members of an EntityObject.

    Inheritance
    System.Object
    DynamicObject
    MemberAccessPermissions
    Implements
    System.Dynamic.IDynamicMetaObjectProvider
    Inherited Members
    DynamicObject.SetMember(String, Object)
    DynamicObject.GetMetaObject(Expression)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: TimeCockpit.Data.Security
    Assembly: TimeCockpit.Data.dll
    Syntax
    public class MemberAccessPermissions : DynamicObject, IDynamicMetaObjectProvider

    Constructors

    MemberAccessPermissions(EntityObject)

    Initializes a new instance of the MemberAccessPermissions class.

    Declaration
    public MemberAccessPermissions(EntityObject entityObject)
    Parameters
    Type Name Description
    EntityObject entityObject

    Parent EntityObject.

    Methods

    CreateMemberAccessPermission(EntityObject, ModelElement)

    Creates a new instance of MemberAccessPermission. Invoked from GetMember method.

    Declaration
    protected virtual MemberAccessPermission CreateMemberAccessPermission(EntityObject entityObject, ModelElement modelElement)
    Parameters
    Type Name Description
    EntityObject entityObject

    EntityObject to create MemberAccessPermission for.

    ModelElement modelElement

    Model Property/Relation to create MemberAccessPermission for.

    Returns
    Type Description
    MemberAccessPermission

    A new instance of the MemberAccessPermission class.

    GetMember(String)

    Gets the permission state of a related EntityObject member.

    Declaration
    public override object GetMember(string name)
    Parameters
    Type Name Description
    System.String name

    Name of the EntityObject member to get the permission state for.

    Returns
    Type Description
    System.Object

    Permission state of the EntityObject member.

    Overrides
    DynamicObject.GetMember(String)

    OnPropertyChanged(String, PermissionType)

    Invoked whenever the value of any property on this object has been updated. The specific property that changed is reported in the event data.

    Declaration
    protected void OnPropertyChanged(string memberName, PermissionType permissionType)
    Parameters
    Type Name Description
    System.String memberName

    Name of the member that the changed permission applies to.

    PermissionType permissionType

    Type of the permission that changed.

    In This Article
    Back to top Copyright © 2020 software architects gmbh