Class MemberAccessPermissions
- Namespace
- TimeCockpit.Data.Security
- Assembly
- TimeCockpit.Data.dll
Container for permissions of the members of an EntityObject.
public class MemberAccessPermissions : DynamicObject, IDynamicMetaObjectProvider
- Inheritance
-
ObjectMemberAccessPermissions
- Implements
-
IDynamicMetaObjectProvider
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
MemberAccessPermissions(EntityObject)
Initializes a new instance of the MemberAccessPermissions class.
public MemberAccessPermissions(EntityObject entityObject)
Parameters
entityObjectEntityObjectParent EntityObject.
Methods
CreateMemberAccessPermission(EntityObject, ModelElement)
Creates a new instance of MemberAccessPermission. Invoked from GetMember method.
protected virtual MemberAccessPermission CreateMemberAccessPermission(EntityObject entityObject, ModelElement modelElement)
Parameters
entityObjectEntityObjectEntityObject to create MemberAccessPermission for.
modelElementModelElementModel Property/Relation to create MemberAccessPermission for.
Returns
- MemberAccessPermission
A new instance of the MemberAccessPermission class.
GetMember(String)
Gets the permission state of a related EntityObject member.
public override object GetMember(string name)
Parameters
nameStringName of the EntityObject member to get the permission state for.
Returns
- Object
Permission state of the EntityObject member.
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.
protected void OnPropertyChanged(string memberName, PermissionType permissionType)
Parameters
memberNameStringName of the member that the changed permission applies to.
permissionTypePermissionTypeType of the permission that changed.