Class EntityDocumentAccessRule
Allow access to the document if the user can access a particular entity.
[MessagePackObject(false)]
public sealed record EntityDocumentAccessRule : DocumentAccessRule, IEquatable<DocumentAccessRule>, IEquatable<EntityDocumentAccessRule>
- Inheritance
-
EntityDocumentAccessRule
- Implements
- Inherited Members
Constructors
EntityDocumentAccessRule(Guid, Guid, Guid, bool)
Allow access to the document if the user can access a particular entity.
public EntityDocumentAccessRule(Guid EntityID, Guid EntityModelID, Guid AttributeModelID, bool NewEntity)
Parameters
Properties
AttributeModelID
[Key(2)]
public Guid AttributeModelID { get; init; }
Property Value
EntityID
[Key(0)]
public Guid EntityID { get; init; }
Property Value
EntityModelID
[Key(1)]
public Guid EntityModelID { get; init; }
Property Value
NewEntity
[Key(3)]
public bool NewEntity { get; init; }
Property Value
Methods
Create(EntityKernel, AttributeInfo)
public static EntityDocumentAccessRule Create(EntityKernel parent, AttributeInfo attribute)
Parameters
parentEntityKernelattributeAttributeInfo
Returns
ToAssertion()
public override DocumentAccessAssertion ToAssertion()
Returns
ToNewEntry(IEntityContext, Guid)
public override IDocumentAccessEntry? ToNewEntry(IEntityContext context, Guid documentID)
Parameters
contextIEntityContextdocumentIDGuid