this.userCommentsAndRatingsVC.contextPut("viewIdent", CodeHelper.getRAMUniqueID());
if (enableRatings) {
this.userRatingsManager = UserRatingsManager.getInstance(ores, oresSubPath);
if (securityCallback.canRate()) {
this.userCommentsAndRatingsVC.contextPut("enableRatings", Boolean.valueOf(enableRatings));
ratingUserC = new RatingComponent("userRating", 0, RATING_MAX, true);
ratingUserC.addListener(this);
this.userCommentsAndRatingsVC.put("ratingUserC", ratingUserC);
ratingUserC.setShowRatingAsText(true);
ratingUserC.setTitle("rating.personal.title");
ratingUserC.setCssClass("b_rating_personal");
}
if (securityCallback.canViewRatingAverage()) {
ratingAverageC = new RatingComponent("ratingAverageC", 0, RATING_MAX, false);
ratingAverageC.addListener(this);
this.userCommentsAndRatingsVC.put("ratingAverageC", ratingAverageC);
ratingAverageC.setShowRatingAsText(true);
ratingAverageC.setTitle("rating.average.title");
ratingAverageC.setTranslateExplanation(false);