Class MemberAccessPermissions
Container for permissions of the members of an EntityObject.
Implements
Inherited Members
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
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. |