Table of Contents

Class LegalHoldCheckResult

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Result of checking legal holds for a data subject.

public sealed record LegalHoldCheckResult : IEquatable<LegalHoldCheckResult>
Inheritance
LegalHoldCheckResult
Implements
Inherited Members

Properties

ActiveHolds

Gets active holds affecting this data subject.

public IReadOnlyList<LegalHoldInfo> ActiveHolds { get; init; }

Property Value

IReadOnlyList<LegalHoldInfo>

ErasureBlocked

Gets whether erasure is completely blocked (all categories covered by holds). When ExemptCategories is non-empty, only those categories are blocked and erasure may proceed for non-exempt categories (see IsPartiallyBlocked).

public bool ErasureBlocked { get; }

Property Value

bool

ExemptCategories

Gets data categories exempt from erasure due to holds. When non-empty, only these categories are protected; other categories may be erased. When empty and HasActiveHolds is true, all data is blocked from erasure.

public IReadOnlyList<string> ExemptCategories { get; init; }

Property Value

IReadOnlyList<string>

HasActiveHolds

Gets whether any active holds exist.

public bool HasActiveHolds { get; init; }

Property Value

bool

IsPartiallyBlocked

Gets whether erasure is partially blocked (some data categories are exempt from erasure due to holds, but other categories may still be erased).

public bool IsPartiallyBlocked { get; }

Property Value

bool

NoHolds

Creates a result indicating no holds.

public static LegalHoldCheckResult NoHolds { get; }

Property Value

LegalHoldCheckResult

Methods

IsCategoryBlocked(string)

Checks whether a specific data category is blocked from erasure.

public bool IsCategoryBlocked(string category)

Parameters

category string

The data category to check.

Returns

bool

true if the category is blocked; otherwise false.

WithHolds(IEnumerable<LegalHoldInfo>)

Creates a result indicating holds exist that block all data categories.

public static LegalHoldCheckResult WithHolds(IEnumerable<LegalHoldInfo> holds)

Parameters

holds IEnumerable<LegalHoldInfo>

Returns

LegalHoldCheckResult

WithPartialHolds(IEnumerable<LegalHoldInfo>, IEnumerable<string>)

Creates a result indicating holds exist that block specific data categories only.

public static LegalHoldCheckResult WithPartialHolds(IEnumerable<LegalHoldInfo> holds, IEnumerable<string> exemptCategories)

Parameters

holds IEnumerable<LegalHoldInfo>
exemptCategories IEnumerable<string>

Returns

LegalHoldCheckResult