Search in sources :

Example 1 with PerspectiveRatingValue

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));
}
Also used : PerspectiveRatingValue(com.khartec.waltz.model.perspective.PerspectiveRatingValue) EntityReference(com.khartec.waltz.model.EntityReference)

Aggregations

EntityReference (com.khartec.waltz.model.EntityReference)1 PerspectiveRatingValue (com.khartec.waltz.model.perspective.PerspectiveRatingValue)1