use of com.khartec.waltz.model.perspective.PerspectiveRatingValue in project waltz by khartec.
the class PerspectiveRatingEndpoint method updateForEntityAxis.
private int updateForEntityAxis(Request request, Response z) throws IOException {
requireRole(userRoleService, request, Role.RATING_EDITOR);
String username = getUsername(request);
EntityReference ref = getEntityReference(request);
long categoryX = getLong(request, "x");
long categoryY = getLong(request, "y");
PerspectiveRatingValue[] values = readBody(request, PerspectiveRatingValue[].class);
return perspectiveRatingService.updatePerspectiveRatings(categoryX, categoryY, ref, username, fromArray(values));
}
Aggregations