/**
  * Gets the rating informations linked with the current publication.
  *
  * @return the rating of the publication.
  */
 @Override
 public ContributionRating getRating() {
   if (contributionRating == null) {
     contributionRating =
         RatingServiceFactory.getRatingService()
             .getRating(new ContributionRatingPK(getId(), getInstanceId(), "Publication"));
   }
   return contributionRating;
 }
Пример #2
0
 @Override
 public ContributionRating getRating() {
   if (contributionRating == null) {
     contributionRating =
         RatingServiceFactory.getRatingService()
             .getRating(
                 new ContributionRatingPK(String.valueOf(id), getInstanceId(), RESOURCE_TYPE));
   }
   return contributionRating;
 }