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 Constructor Description RestRatingModelsCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestRatingModelsCollectionassertNodeHasFiveStarRating()RestRatingModelsCollectionassertNodeHasNoFiveStarRating()RestRatingModelsCollectionassertNodeIsLiked()RestRatingModelsCollectionassertNodeIsNotLiked()intgetNumberOfRatingsFor(java.lang.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
-
-
-
-
Method Detail
-
assertNodeIsLiked
public RestRatingModelsCollection assertNodeIsLiked()
-
assertNodeIsNotLiked
public RestRatingModelsCollection assertNodeIsNotLiked()
-
assertNodeHasFiveStarRating
public RestRatingModelsCollection assertNodeHasFiveStarRating()
-
assertNodeHasNoFiveStarRating
public RestRatingModelsCollection assertNodeHasNoFiveStarRating()
-
getNumberOfRatingsFor
public int getNumberOfRatingsFor(java.lang.String ratingValue)
Default, the rating value can be: "likes" or "fiveStar"- Parameters:
ratingValue-- Returns:
-
-