Interface IDataInventoryQueryStore
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Query operations for data inventory.
public interface IDataInventoryQueryStore
Remarks
This sub-interface of IDataInventoryStore isolates query/listing concerns per the Interface Segregation Principle (ISP).
Consumers that only need to query data inventory can depend on this
interface directly. Implementations that also implement IDataInventoryStore
expose this interface via GetService(typeof(IDataInventoryQueryStore)).
Methods
FindRegistrationsForDataSubjectAsync(string, DataSubjectIdType, string?, CancellationToken)
Finds registrations for a data subject.
Task<IReadOnlyList<DataLocationRegistration>> FindRegistrationsForDataSubjectAsync(string dataSubjectId, DataSubjectIdType idType, string? tenantId, CancellationToken cancellationToken)
Parameters
dataSubjectIdstringThe data subject identifier.
idTypeDataSubjectIdTypeThe identifier type.
tenantIdstringOptional tenant filter.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<DataLocationRegistration>>
List of matching registrations.
GetDataMapEntriesAsync(string?, CancellationToken)
Gets data map entries for RoPA reporting.
Task<IReadOnlyList<DataMapEntry>> GetDataMapEntriesAsync(string? tenantId, CancellationToken cancellationToken)
Parameters
tenantIdstringOptional tenant filter.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<DataMapEntry>>
List of data map entries.
GetDiscoveredLocationsAsync(string, CancellationToken)
Gets all discovered locations for a data subject.
Task<IReadOnlyList<DataLocation>> GetDiscoveredLocationsAsync(string dataSubjectId, CancellationToken cancellationToken)
Parameters
dataSubjectIdstringThe data subject identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<DataLocation>>
List of discovered locations.