@TimedResource @PUT @Consumes(APPLICATION_JSON) @Produces(APPLICATION_JSON) @Path("/users/{username:"******"}/roles") @ApiOperation(value = "Update roles associated to a user") public Response updateUserRoles( final UserRolesJson json, @PathParam("username") final String username, @HeaderParam(HDR_CREATED_BY) final String createdBy, @HeaderParam(HDR_REASON) final String reason, @HeaderParam(HDR_COMMENT) final String comment, @javax.ws.rs.core.Context final HttpServletRequest request, @javax.ws.rs.core.Context final UriInfo uriInfo) throws SecurityApiException { securityApi.updateUserRoles( username, json.getRoles(), context.createContext(createdBy, reason, comment, request)); return Response.status(Status.OK).build(); }