|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.rating.ContributionRating
public class ContributionRating
This class represents the global data about a rating on a contribution.
Constructor Summary | |
---|---|
ContributionRating(ContributionRatingPK pk)
Default constructor. |
Method Summary | |
---|---|
void |
addRaterRating(String raterId,
Integer ratingValue)
Adds a rating of a rater. |
String |
getContributionId()
Gets the identifier of the contribution aimed by the rating. |
String |
getContributionType()
Gets the type of the contribution aimed by the rating. |
String |
getInstanceId()
Gets the identifier of the component instance which the contribution aimed by the rating is associated. |
RaterRating |
getRaterRating(UserDetail rater)
Gets an instance of a RaterRating according to the specified rater. |
Map<String,Integer> |
getRaterRatings()
Gets all rater ratings associated to the rating. |
float |
getRatingAverage()
Gets the average of all rater ratings associated to the contribution aimed by the rating. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContributionRating(ContributionRatingPK pk)
pk
- the technical primary key of a rating related to a contribution.Method Detail |
---|
public String getInstanceId()
public String getContributionId()
public String getContributionType()
public float getRatingAverage()
public void addRaterRating(String raterId, Integer ratingValue)
raterId
- the identifier of the user that is the rater.ratingValue
- the value of the rater rating.public RaterRating getRaterRating(UserDetail rater)
RaterRating
according to the specified rater.
rater
- the user for whom the rating is requested.
public Map<String,Integer> getRaterRatings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |