aaa
This commit is contained in:
parent
4b50b72ff5
commit
944d14aaa0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue