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
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
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
HasActiveHolds
Gets whether any active holds exist.
public bool HasActiveHolds { get; init; }
Property Value
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
NoHolds
Creates a result indicating no holds.
public static LegalHoldCheckResult NoHolds { get; }
Property Value
Methods
IsCategoryBlocked(string)
Checks whether a specific data category is blocked from erasure.
public bool IsCategoryBlocked(string category)
Parameters
categorystringThe data category to check.
Returns
WithHolds(IEnumerable<LegalHoldInfo>)
Creates a result indicating holds exist that block all data categories.
public static LegalHoldCheckResult WithHolds(IEnumerable<LegalHoldInfo> holds)
Parameters
holdsIEnumerable<LegalHoldInfo>
Returns
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
holdsIEnumerable<LegalHoldInfo>exemptCategoriesIEnumerable<string>