From c9db25e008da07407e6e2c1278c79721dc7007cf Mon Sep 17 00:00:00 2001 From: Ryan Carroll Date: Tue, 14 Nov 2023 15:59:44 -0500 Subject: [PATCH] Add default naive implementation of StreamService loadAllByTitle() --- .../src/main/java/org/graylog2/streams/StreamService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graylog2-server/src/main/java/org/graylog2/streams/StreamService.java b/graylog2-server/src/main/java/org/graylog2/streams/StreamService.java index 4d73b2a07321..2bd41ec6753c 100644 --- a/graylog2-server/src/main/java/org/graylog2/streams/StreamService.java +++ b/graylog2-server/src/main/java/org/graylog2/streams/StreamService.java @@ -53,7 +53,7 @@ public interface StreamService extends PersistedService { List loadAllEnabled(); default List loadAllByTitle(String title) { - throw new UnsupportedOperationException("loadAllByTitle method not implemented"); + return loadAll().stream().filter(s -> title.equals(s.getTitle())).toList(); } /**