@AsynchronousPreferred @TransactionAware public class

UserErasedEvent

extends ApplicationEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.ApplicationEvent
       ↳ com.atlassian.bitbucket.event.user.UserErasedEvent

Class Overview

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 HIGH priority.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
UserErasedEvent(Object source, long duration, String originalUsername, ApplicationUser updatedUser)
Public Methods
long getDuration()
@Nonnull String getOriginalUsername()
@Nonnull ApplicationUser getUpdatedUser()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public UserErasedEvent (Object source, long duration, String originalUsername, ApplicationUser updatedUser)

Public Methods

public long getDuration ()

Returns
  • processing duration of the user erasure, in milliseconds

@Nonnull public String getOriginalUsername ()

Returns
  • the original username of the erased user

@Nonnull public ApplicationUser getUpdatedUser ()

Returns
  • the user with the anonymized name