Class UserErasedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.user.UserErasedEvent
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionUserErasedEvent
(Object source, long duration, String originalUsername, ApplicationUser updatedUser) -
Method Summary
Modifier and TypeMethodDescriptionlong
Methods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUser
Methods inherited from class java.util.EventObject
getSource, toString
-
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
- Returns:
- the original username of the erased user
-
getUpdatedUser
- Returns:
- the user with the anonymized name
-