Table of Contents

Class EntityDocumentAccessAssertion

Namespace
The.Documents
Assembly
Instagile.dll

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

EntityID Guid
EntityModelID Guid
AttributeModelID Guid
NewEntity bool

Properties

AttributeModelID

[Key(2)]
public Guid AttributeModelID { get; init; }

Property Value

Guid

EntityID

[Key(0)]
public Guid EntityID { get; init; }

Property Value

Guid

EntityModelID

[Key(1)]
public Guid EntityModelID { get; init; }

Property Value

Guid

NewEntity

[Key(3)]
public bool NewEntity { get; init; }

Property Value

bool

Methods

Create(EntityKernel, AttributeInfo)

public static EntityDocumentAccessAssertion Create(EntityKernel parent, AttributeInfo attribute)

Parameters

parent EntityKernel
attribute AttributeInfo

Returns

EntityDocumentAccessAssertion

Matches(IOwned)

public bool Matches(IOwned prop)

Parameters

prop IOwned

Returns

bool

ToRule()

public override DocumentAccessRule ToRule()

Returns

DocumentAccessRule