Class ThumbRating
java.lang.Object
fr.paris.lutece.plugins.extend.business.extender.history.ResourceExtenderHistory
fr.paris.lutece.plugins.extend.modules.rating.business.Rating
fr.paris.lutece.plugins.extend.modules.rating.business.ThumbRating
- All Implemented Interfaces:
fr.paris.lutece.plugins.extend.service.extender.facade.IExtendableResourceResult
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the ScoreDislikelongReturns the ScoreLikegetTitle()Get tilte of the rating typevoidsetScoreDislike(long nScoreDislike) Sets the ScoreDislikevoidsetScoreLike(long nScoreLike) Sets the ScoreLikevoidsetScoreValue(float[] ratingValue) Sums the votes and counts the positive and the negative ones.Methods inherited from class fr.paris.lutece.plugins.extend.modules.rating.business.Rating
getIdRating, getRatingCount, getRatingType, getRatingValue, getScoreValue, getUser, setHistory, setIdRating, setRatingCount, setRatingType, setRatingValue, setScoreValue, setUserMethods inherited from class fr.paris.lutece.plugins.extend.business.extender.history.ResourceExtenderHistory
getDateCreation, getExtendableResourceType, getExtenderType, getIdExtendableResource, getIdHistory, getIpAddress, getUserGuid, setDateCreation, setExtendableResourceType, setExtenderType, setIdExtendableResource, setIdHistory, setIpAddress, setUserGuidMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.plugins.extend.service.extender.facade.IExtendableResourceResult
getExtendableResourceType, getIdExtendableResource
-
Field Details
-
RATING_TITLE
- See Also:
-
-
Constructor Details
-
ThumbRating
public ThumbRating()
-
-
Method Details
-
setScoreValue
public void setScoreValue(float[] ratingValue) Sums the votes and counts the positive and the negative ones.- Overrides:
setScoreValuein classRating- Parameters:
ratingValue- the values of the votes
-
getScoreLike
public long getScoreLike()Returns the ScoreLike- Returns:
- The ScoreLike
-
setScoreLike
public void setScoreLike(long nScoreLike) Sets the ScoreLike- Parameters:
nScoreLike- The ScoreLike
-
getScoreDislike
public long getScoreDislike()Returns the ScoreDislike- Returns:
- The ScoreDislike
-
setScoreDislike
public void setScoreDislike(long nScoreDislike) Sets the ScoreDislike- Parameters:
nScoreDislike- The ScoreDislike
-
getTitle
Description copied from class:RatingGet tilte of the rating type
-