@Singleton public class GrantsCleanupListener extends Object
UserDeletedEvents to remove orphaned grants from the DB. It will go through all grants present
in the DB, not just the grants for the user mentioned in the delete event to remove any leftover grants for users
which don't exist anymore.| Constructor and Description |
|---|
GrantsCleanupListener(com.google.common.eventbus.EventBus eventBus,
DBGrantService grantService,
PaginatedUserService userService,
GRNRegistry grnRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleUserDeletedEvent(UserDeletedEvent event) |
@Inject
public GrantsCleanupListener(com.google.common.eventbus.EventBus eventBus,
DBGrantService grantService,
PaginatedUserService userService,
GRNRegistry grnRegistry)
public void handleUserDeletedEvent(UserDeletedEvent event)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.