Class EntityDocumentAccessAssertion
Assert that a document can be accessed because the caller can read a particular entity.
[MessagePackObject(false)]
public sealed record EntityDocumentAccessAssertion : DocumentAccessAssertion, IEquatable<DocumentAccessAssertion>, IEquatable<EntityDocumentAccessAssertion>
- Inheritance
-
EntityDocumentAccessAssertion
- Implements
- Inherited Members
Constructors
EntityDocumentAccessAssertion(Guid, Guid, Guid, bool)
Assert that a document can be accessed because the caller can read a particular entity.
public EntityDocumentAccessAssertion(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 EntityDocumentAccessAssertion Create(EntityKernel parent, AttributeInfo attribute)
Parameters
parentEntityKernelattributeAttributeInfo
Returns
Matches(IOwned)
public bool Matches(IOwned prop)
Parameters
propIOwned
Returns
ToRule()
public override DocumentAccessRule ToRule()