Zum Hauptinhalt springen

DataPolicyDto

Namespace: Meshmakers.Octo.Communication.Contracts.DataTransferObjects

Data Transfer Object for a data policy (AB#4972): binds a data permission to CK types with actions, scope and enforcement mode.

public record DataPolicyDto : IEquatable<DataPolicyDto>

Inheritance Object → DataPolicyDto
Implements IEquatable<DataPolicyDto>

Properties​

Id​

Unique ID of the policy.

public Nullable<OctoObjectId> Id { get; set; }

Property Value​

Nullable<OctoObjectId>

TargetCkTypeIds​

CK type ids (or collection roots) the policy targets; derived types inherit.

public List<string> TargetCkTypeIds { get; set; }

Property Value​

List<String>

Actions​

Granted actions: Read, Write, Delete.

public List<string> Actions { get; set; }

Property Value​

List<String>

Scope​

"All" or "OwnedOnly" (restricted to entities created by the caller).

public string Scope { get; set; }

Property Value​

String

EnforcementMode​

"Enforce" or "AuditOnly" (violations only logged — migration mode).

public string EnforcementMode { get; set; }

Property Value​

String

Constructors​

DataPolicyDto()​

public DataPolicyDto()