public class RatingApi extends Object
Rating
, typically returned by the RatingsScriptService
and manipulated using a scripting
language in the wiki.Rating
Modifier and Type | Field and Description |
---|---|
protected Rating |
rating
The wrapped rating.
|
Constructor and Description |
---|
RatingApi(Rating rating)
Constructor of this wrapper.
|
Modifier and Type | Method and Description |
---|---|
org.xwiki.model.reference.DocumentReference |
getAuthor()
Gets the rating author.
|
Date |
getDate()
Gets the rating date.
|
String |
getGlobalRatingId()
Gets the global rating id.
|
protected Rating |
getRating()
Gets the rating.
|
int |
getVote()
Gets the vote for the rating.
|
protected Rating rating
public RatingApi(Rating rating)
rating
- the wrapped ratingprotected Rating getRating()
public String getGlobalRatingId()
public int getVote()
public org.xwiki.model.reference.DocumentReference getAuthor()
public Date getDate()
Copyright © 2004–2017 XWiki. All rights reserved.