From 2b11229e59e8961e167d2010c0e782b8352a5f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Guimar=C3=A3es?= Date: Fri, 19 Apr 2024 17:18:34 +0100 Subject: [PATCH] Add NotificationRestService to mapped Services --- .../src/main/java/org/roda/wui/client/services/Services.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roda-ui/roda-wui/src/main/java/org/roda/wui/client/services/Services.java b/roda-ui/roda-wui/src/main/java/org/roda/wui/client/services/Services.java index b9c7c01133..6e3b9db58f 100644 --- a/roda-ui/roda-wui/src/main/java/org/roda/wui/client/services/Services.java +++ b/roda-ui/roda-wui/src/main/java/org/roda/wui/client/services/Services.java @@ -10,6 +10,7 @@ import org.roda.core.data.exceptions.RODAException; import org.roda.core.data.v2.index.IsIndexed; import org.roda.core.data.v2.ip.TransferredResource; +import org.roda.core.data.v2.notifications.Notification; import com.google.gwt.core.client.GWT; @@ -68,6 +69,8 @@ public , O extends IsIndexed, T> CompletableF S service; if (TransferredResource.class.getName().equals(objectClassString)) { service = GWT.create(TransferredResourceRestService.class); + } else if (Notification.class.getName().equals(objectClassString)) { + service = GWT.create(NotificationRestService.class); } else { throw new IllegalArgumentException(objectClassString + " not supported"); }