This commit is contained in:
Massimiliano Assante 2022-09-16 12:26:26 +02:00
parent 4b50b72ff5
commit 944d14aaa0
1 changed files with 4 additions and 1 deletions

View File

@ -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();