Class NotificationRemovalListener


  • public class NotificationRemovalListener
    extends Object
    Listens to any permissions changes and removes notifications as necessary
    • Constructor Detail

      • NotificationRemovalListener

        public NotificationRemovalListener​(@Qualifier("notificationManager")
                                           NotificationManager notificationManager,
                                           @Qualifier("permissionManager")
                                           PermissionManager permissionManager)
    • Method Detail

      • onSpacePermissionRemovedEvent

        @EventListener
        public void onSpacePermissionRemovedEvent​(SpacePermissionRemoveEvent e)
        If a VIEWSPACE permission is being removed, iterate through the list of space watchers and remove any users who should no longer be there.