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.gcube.vomanagement.usermanagement.model.GCubeUser;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.webcohesion.enunciate.metadata.rs.RequestHeader;
|
import com.webcohesion.enunciate.metadata.rs.RequestHeader;
|
||||||
import com.webcohesion.enunciate.metadata.rs.RequestHeaders;
|
import com.webcohesion.enunciate.metadata.rs.RequestHeaders;
|
||||||
import com.webcohesion.enunciate.metadata.rs.ResponseCode;
|
import com.webcohesion.enunciate.metadata.rs.ResponseCode;
|
||||||
|
@ -200,8 +201,10 @@ public class Notifications {
|
||||||
@AuthorizationControl(allowedRoles={INFRASTRUCTURE_MANAGER_ROLE}, exception=AuthException.class)
|
@AuthorizationControl(allowedRoles={INFRASTRUCTURE_MANAGER_ROLE}, exception=AuthException.class)
|
||||||
public Response setUserNotifications(
|
public Response setUserNotifications(
|
||||||
@NotNull(message="username cannot be null")
|
@NotNull(message="username cannot be null")
|
||||||
|
@JsonProperty("username")
|
||||||
String username,
|
String username,
|
||||||
@NotNull(message="must specify the disable parameter")
|
@NotNull(message="must specify the disable parameter")
|
||||||
|
@JsonProperty("disable")
|
||||||
boolean disable) throws ValidationException{
|
boolean disable) throws ValidationException{
|
||||||
|
|
||||||
Caller caller = AuthorizationProvider.instance.get();
|
Caller caller = AuthorizationProvider.instance.get();
|
||||||
|
|
Loading…
Reference in New Issue