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
TargetCkTypeIds
CK type ids (or collection roots) the policy targets; derived types inherit.
public List<string> TargetCkTypeIds { get; set; }
Property Value
Actions
Granted actions: Read, Write, Delete.
public List<string> Actions { get; set; }
Property Value
Scope
"All" or "OwnedOnly" (restricted to entities created by the caller).
public string Scope { get; set; }
Property Value
EnforcementMode
"Enforce" or "AuditOnly" (violations only logged — migration mode).
public string EnforcementMode { get; set; }
Property Value
Constructors
DataPolicyDto()
public DataPolicyDto()