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 Constructor Description RestPaginationModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelAssertion<RestPaginationModel>and()ModelAssertion<RestPaginationModel>assertThat()intgetCount()intgetMaxItems()intgetSkipCount()java.lang.IntegergetTotalItems()Get the totalItems.booleanisHasMoreItems()voidsetCount(int count)voidsetHasMoreItems(boolean hasMoreItems)voidsetMaxItems(int maxItems)voidsetSkipCount(int skipCount)voidsetTotalItems(java.lang.Integer totalItems)
-
-
-
Method Detail
-
getCount
public int getCount()
-
setCount
public void setCount(int count)
-
isHasMoreItems
public boolean isHasMoreItems()
-
setHasMoreItems
public void setHasMoreItems(boolean hasMoreItems)
-
getTotalItems
public java.lang.Integer getTotalItems()
Get the totalItems.- Returns:
- The total number of items, or null if it was not included in the response.
-
setTotalItems
public void setTotalItems(java.lang.Integer totalItems)
-
getSkipCount
public int getSkipCount()
-
setSkipCount
public void setSkipCount(int skipCount)
-
getMaxItems
public int getMaxItems()
-
setMaxItems
public void setMaxItems(int maxItems)
-
assertThat
public ModelAssertion<RestPaginationModel> assertThat()
- Specified by:
assertThatin interfaceIModelAssertion<RestPaginationModel>
-
and
public ModelAssertion<RestPaginationModel> and()
- Specified by:
andin interfaceIModelAssertion<RestPaginationModel>
-
-