Package org.alfresco.rest.model
Class RestPaginationModel
java.lang.Object
org.alfresco.utility.model.TestModel
org.alfresco.rest.model.RestPaginationModel
- All Implemented Interfaces:
IModelAssertion<RestPaginationModel>,org.alfresco.utility.model.Model
public class RestPaginationModel
extends org.alfresco.utility.model.TestModel
implements IModelAssertion<RestPaginationModel>
Handles Pagination JSON
Example:
"pagination": {
"count": 100,
"hasMoreItems": true,
"totalItems": 269,
"skipCount": 0,
"maxItems": 100
},
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCount()intintGet the totalItems.booleanvoidsetCount(int count) voidsetHasMoreItems(boolean hasMoreItems) voidsetMaxItems(int maxItems) voidsetSkipCount(int skipCount) voidsetTotalItems(Integer totalItems) Methods inherited from class org.alfresco.utility.model.TestModel
setRandomValuesForAllFields, toInfo, toJson, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.rest.core.assertion.IModelAssertion
and, assertThat
-
Constructor Details
-
RestPaginationModel
public RestPaginationModel()
-
-
Method Details
-
getCount
public int getCount() -
setCount
public void setCount(int count) -
isHasMoreItems
public boolean isHasMoreItems() -
setHasMoreItems
public void setHasMoreItems(boolean hasMoreItems) -
getTotalItems
Get the totalItems.- Returns:
- The total number of items, or null if it was not included in the response.
-
setTotalItems
-
getSkipCount
public int getSkipCount() -
setSkipCount
public void setSkipCount(int skipCount) -
getMaxItems
public int getMaxItems() -
setMaxItems
public void setMaxItems(int maxItems)
-