Search in sources :

Example 1 with StreamDeletedEvent

use of org.graylog2.streams.events.StreamDeletedEvent in project graylog2-server by Graylog2.

the class StartPageCleanupListener method removeStartpageReferencesIfStreamDeleted.

@Subscribe
@SuppressWarnings("unused")
public void removeStartpageReferencesIfStreamDeleted(StreamDeletedEvent streamDeletedEvent) {
    final Startpage deletedStartpage = Startpage.create("stream", streamDeletedEvent.streamId());
    resetReferencesToStartpage(deletedStartpage);
}
Also used : Startpage(org.graylog2.rest.models.users.requests.Startpage) Subscribe(com.google.common.eventbus.Subscribe)

Aggregations

Subscribe (com.google.common.eventbus.Subscribe)1 Startpage (org.graylog2.rest.models.users.requests.Startpage)1