Defining the destroyer
The PCPersonalDataDestroyer class extends PinnablePersonalDataDestroyer, which implements the PersonalDataDestroyer interface. PCPersonalDataDestroyer overrides methods that determine how a destruction request is carried out.
In the base configuration, the
PCPersonalDataDestroyer class destroys contacts, accounts and
policies. If a contact is of type UserContact, the contact is
obfuscated by calling user.Obfuscate. Otherwise the class uses
the internal implementation of PersonalDataDestroyer that purges
the entity graph of the contact, account, or policy.
In the base configuration, PCPersonalDataDestroyer
provides the destroyer that is obtained by the
PCPersonalDataDestruction plugin implementation class call to
getDestroyer. PCPersonalDataDestruction is
registered by default in the PersonalDataDestruction and
PersonalDataDestructionForPCRootsPlugin plugin registries.
