|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.notation.ejb.RatingBmEJB
public class RatingBmEJB
| Constructor Summary | |
|---|---|
RatingBmEJB()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RatingBmEJB()
| Method Detail |
|---|
public void updateRating(RaterRatingPK pk,
int note)
RatingBm
updateRating in interface RatingBmpk - identifying the rated resource and the raternote - the rate given to this resource by the user
public void moveRating(ContributionRatingPK pk,
String componentInstanceId)
RatingBm
moveRating in interface RatingBmpk - identifying the resourcecomponentInstanceId - the target component identified by its instance id.public void deleteRating(ContributionRatingPK pk)
RatingBm
deleteRating in interface RatingBmpk - identifying the resourcepublic void deleteRaterRating(RaterRatingPK pk)
RatingBm
deleteRaterRating in interface RatingBmpk - identifying the resource and the raterpublic void deleteComponentRatings(String componentInstanceId)
RatingBm
deleteComponentRatings in interface RatingBmcomponentInstanceId - identitier of the component instance.public Map<String,ContributionRating> getRatings(SilverpeasContent... contributions)
RatingBmContributionRating instance is returned anyway.
getRatings in interface RatingBmcontributions - the contributions which returned ratings must be attached.
ContributionRating instances ralated to the given contributions indexed by contribution
identifier.public ContributionRating getRating(SilverpeasContent contribution)
RatingBmContributionRating instance is returned anyway.
getRating in interface RatingBmcontribution - the contribution which returned ratings must be attached.
ContributionRating instance ralated to the given contribution.public ContributionRating getRating(ContributionRatingPK pk)
RatingBm
getRating in interface RatingBmpk - identity of resource
public boolean hasUserRating(RaterRatingPK pk)
RatingBm
hasUserRating in interface RatingBmpk - identity of resource and rater
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||