|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RatingBm
| Method Summary | |
|---|---|
void |
deleteComponentRatings(String componentInstanceId)
Remove all resources notations of given app |
void |
deleteRaterRating(RaterRatingPK pk)
Remove rater rating of identified resource |
void |
deleteRating(ContributionRatingPK pk)
Remove all notations of identified resource |
ContributionRating |
getRating(ContributionRatingPK pk)
Getting notation about once given resource identified by its PK. |
ContributionRating |
getRating(SilverpeasContent contribution)
Getting notation about the given contribution. |
Map<String,ContributionRating> |
getRatings(SilverpeasContent... contributions)
Getting notation about the given contributions. |
boolean |
hasUserRating(RaterRatingPK pk)
Checking if user has given a rating on this resource |
void |
moveRating(ContributionRatingPK pk,
String componentInstanceId)
Remove all notations of identified resource to the specified component instance identifier. |
void |
updateRating(RaterRatingPK pk,
int note)
Save user notation. |
| Method Detail |
|---|
void updateRating(RaterRatingPK pk,
int note)
pk - identifying the rated resource and the raternote - the rate given to this resource by the user
void moveRating(ContributionRatingPK pk,
String componentInstanceId)
pk - identifying the resourcecomponentInstanceId - the target component identified by its instance id.void deleteRating(ContributionRatingPK pk)
pk - identifying the resourcevoid deleteRaterRating(RaterRatingPK pk)
pk - identifying the resource and the ratervoid deleteComponentRatings(String componentInstanceId)
componentInstanceId - identitier of the component instance.Map<String,ContributionRating> getRatings(SilverpeasContent... contributions)
ContributionRating instance is returned anyway.
contributions - the contributions which returned ratings must be attached.
ContributionRating instances ralated to the given contributions indexed by contribution
identifier.ContributionRating getRating(SilverpeasContent contribution)
ContributionRating instance is returned anyway.
contribution - the contribution which returned ratings must be attached.
ContributionRating instance ralated to the given contribution.ContributionRating getRating(ContributionRatingPK pk)
pk - identity of resource
boolean hasUserRating(RaterRatingPK pk)
pk - identity of resource and rater
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||