Table of Contents

Class EntityDocumentAccessRule

Namespace
The.Documents
Assembly
Instagile.dll

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

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 EntityDocumentAccessRule Create(EntityKernel parent, AttributeInfo attribute)

Parameters

parent EntityKernel
attribute AttributeInfo

Returns

EntityDocumentAccessRule

ToAssertion()

public override DocumentAccessAssertion ToAssertion()

Returns

DocumentAccessAssertion

ToNewEntry(IEntityContext, Guid)

public override IDocumentAccessEntry? ToNewEntry(IEntityContext context, Guid documentID)

Parameters

context IEntityContext
documentID Guid

Returns

IDocumentAccessEntry