Class UserErasedEvent

All Implemented Interfaces:
Serializable

@AsynchronousPreferred @TransactionAware public class UserErasedEvent extends ApplicationEvent
Raised when personally identifying user data is erased for username.

Clients that store personally identifying user data should implement a UserErasureModuleDescriptor with a corresponding handler to erase this data.

This event is internally audited with a CoverageLevel.BASE coverage level.

Since:
5.16
See Also:
  • Constructor Details

    • UserErasedEvent

      public UserErasedEvent(@Nonnull Object source, long duration, @Nonnull String originalUsername, @Nonnull ApplicationUser updatedUser)
  • Method Details

    • getDuration

      public long getDuration()
      Returns:
      processing duration of the user erasure, in milliseconds
    • getOriginalUsername

      @Nonnull public String getOriginalUsername()
      Returns:
      the original username of the erased user
    • getUpdatedUser

      @Nonnull public ApplicationUser getUpdatedUser()
      Returns:
      the user with the anonymized name