|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.rating.web.RaterRatingEntity
public class RaterRatingEntity
Constructor Summary | |
---|---|
protected |
RaterRatingEntity()
|
Method Summary | |
---|---|
static RaterRatingEntity |
fromRateable(Rateable rateableContribution)
Creates a new rater rating entity from the specified parameter. |
protected static RaterRatingEntity |
fromRaterRating(RaterRating raterRating)
Creates a new rater rating entity from the specified parameter. |
String |
getAsJSonString()
|
String |
getComponentId()
Gets the identifier of the Silverpeas component instance to which the rated content belongs. |
String |
getContributionId()
Gets the identifier of the resource that is rated by this. |
String |
getContributionType()
Gets the type of the resource that is rated by this. |
int |
getNumberOfRaterRatings()
Gets the number of rater ratings on the contribution. |
int |
getRaterRatingValue()
Gets the rating of the current user. |
float |
getRatingAverage()
Gets the average rating on the contribution. |
URI |
getURI()
Gets the URI at which this resource is published and can be accessed. |
boolean |
isRatingDone()
Indicates if the current user made a rating on the contribution. |
protected void |
setComponentId(String componentId)
|
protected void |
setContributionId(String contributionId)
|
protected void |
setContributionType(String contributionType)
|
protected void |
setNumberOfRaterRatings(int numberOfRaterRatings)
|
protected void |
setRaterRatingValue(int raterRatingValue)
|
protected void |
setRatingAverage(float ratingAverage)
|
protected void |
setRatingDone(boolean isRatingDone)
|
protected void |
setUri(URI uri)
|
String |
toJSonScript(String jsVariableName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RaterRatingEntity()
Method Detail |
---|
public static RaterRatingEntity fromRateable(Rateable rateableContribution)
rateableContribution
- a contribution that implements the Rateable
behaviour.
UserDetail.getCurrentRequester()
protected static RaterRatingEntity fromRaterRating(RaterRating raterRating)
raterRating
- the rater rating to entitify.
public URI getURI()
Exposable
getURI
in interface Exposable
public String getComponentId()
public String getContributionType()
public String getContributionId()
public int getNumberOfRaterRatings()
public float getRatingAverage()
public int getRaterRatingValue()
public boolean isRatingDone()
public String toJSonScript(String jsVariableName)
public String getAsJSonString()
protected void setUri(URI uri)
protected void setComponentId(String componentId)
protected void setContributionType(String contributionType)
protected void setContributionId(String contributionId)
protected void setNumberOfRaterRatings(int numberOfRaterRatings)
protected void setRatingAverage(float ratingAverage)
protected void setRaterRatingValue(int raterRatingValue)
protected void setRatingDone(boolean isRatingDone)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |