userId = currentUser.getUserId();
} catch (Exception e) {
Logger.error(this, "Error trying to obtain the current liferay user from the request.", e);
}
Rating rt = RatingAPI.getRating(llCookie, identifier, userId);
rt.setUserId(userId);
rt.setRating(rating);
rt.setIdentifier(identifier);
rt.setLongLiveCookiesId(llCookie);
rt.setSessionId(session.getId());
rt.setUserIP(request.getRemoteAddr());
RatingAPI.saveRating (rt);
return new ActionForward(referer,true);