Class PersonalDataCollectorRegister
- Namespace
- CMS.DataProtection
- Assembly
- CMS.DataProtection.dll
Contains personal data collectors.
public class PersonalDataCollectorRegister
- Inheritance
-
objectPersonalDataCollectorRegister
- Extension Methods
Properties
Count
Gets the number of registered IPersonalDataCollectors in the register.
public int Count { get; }
Property Value
- int
Instance
Gets the PersonalDataCollectorRegister instance.
public static PersonalDataCollectorRegister Instance { get; }
Property Value
Methods
Add(IPersonalDataCollector)
Adds personal data collector to the register.
public void Add(IPersonalDataCollector personalDataCollector)
Parameters
personalDataCollector
IPersonalDataCollectorInstance of IPersonalDataCollector responsible for collecting personal data.
Exceptions
- ArgumentNullException
Thrown when
personalDataCollector
is null.
CollectData(IEnumerable<BaseInfo>, string)
Collects all the personal data by invoking registered collectors and passing them the identities
.
public IEnumerable<PersonalDataCollectorResult> CollectData(IEnumerable<BaseInfo> identities, string outputFormat)
Parameters
identities
IEnumerable<BaseInfo>Collection of identities representing a data subject.
outputFormat
stringDefines an output format for the result.
Returns
- IEnumerable<PersonalDataCollectorResult>
Returns results of each data collector in an order they were registered.
- See Also