Package org.alfresco.rest.model
Class RestRatingModelsCollection
java.lang.Object
org.alfresco.rest.core.RestModels<RestRatingModel,RestRatingModelsCollection>
org.alfresco.rest.model.RestRatingModelsCollection
- All Implemented Interfaces:
IModelsCollectionAssertion<RestRatingModelsCollection>,IRestModelsCollection<RestRatingModel>
public class RestRatingModelsCollection
extends RestModels<RestRatingModel,RestRatingModelsCollection>
Handle collection of
{
"list": {
"pagination": {
"count": 0,
"hasMoreItems": true,
"totalItems": 0,
"skipCount": 0,
"maxItems": 0
},
"entries": [
{
"entry": {
"id": "string",
"aggregate": {
"numberOfRatings": 0,
"average": 0
},
"ratedAt": "2016-09-28T13:56:58.931Z",
"myRating": "string"
}
}
]
}
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetNumberOfRatingsFor(String ratingValue) Default, the rating value can be: "likes" or "fiveStar"Methods inherited from class org.alfresco.rest.core.RestModels
and, assertThat, getEntries, getEntryByIndex, getOneRandomEntry, getPagination, isEmpty, setPagination, when
-
Constructor Details
-
RestRatingModelsCollection
public RestRatingModelsCollection()
-
-
Method Details
-
assertNodeIsLiked
-
assertNodeIsNotLiked
-
assertNodeHasFiveStarRating
-
assertNodeHasNoFiveStarRating
-
getNumberOfRatingsFor
Default, the rating value can be: "likes" or "fiveStar"- Parameters:
ratingValue-- Returns:
-