Skip to content

Commit

Permalink
Add NotificationRestService to mapped Services
Browse files Browse the repository at this point in the history
  • Loading branch information
hmiguim committed Apr 19, 2024
1 parent e4547ad commit 2b11229
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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;

Expand Down Expand Up @@ -68,6 +69,8 @@ public <S extends RODAEntityRestService<O>, 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");
}
Expand Down

0 comments on commit 2b11229

Please sign in to comment.