From 944d14aaa0870b409bd84f2481cce9910e6642c1 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Fri, 16 Sep 2022 12:26:26 +0200 Subject: [PATCH] aaa --- .../social/networking/ws/methods/v2/Notifications.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java index 3a3176c..d4ce3c5 100644 --- a/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java +++ b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java @@ -76,6 +76,7 @@ import org.gcube.vomanagement.usermanagement.exception.UserManagementSystemExcep import org.gcube.vomanagement.usermanagement.model.GCubeUser; import org.slf4j.LoggerFactory; +import com.fasterxml.jackson.annotation.JsonProperty; import com.webcohesion.enunciate.metadata.rs.RequestHeader; import com.webcohesion.enunciate.metadata.rs.RequestHeaders; import com.webcohesion.enunciate.metadata.rs.ResponseCode; @@ -199,9 +200,11 @@ public class Notifications { }) @AuthorizationControl(allowedRoles={INFRASTRUCTURE_MANAGER_ROLE}, exception=AuthException.class) public Response setUserNotifications( - @NotNull(message="username cannot be null") + @NotNull(message="username cannot be null") + @JsonProperty("username") String username, @NotNull(message="must specify the disable parameter") + @JsonProperty("disable") boolean disable) throws ValidationException{ Caller caller = AuthorizationProvider.instance.get();