Class Paging
- java.lang.Object
-
- org.alfresco.rest.framework.resource.parameters.Paging
-
public class Paging extends java.lang.ObjectRepresents paging of collections of resources. Set by the client request.
skipCount - How many entries exist in the entire collection before those included in the list
maxItems - The maximum number of items the client requires. Defaults to 100.- Author:
- Gethin James, Martin Muller (mmuller)
-
-
Field Summary
Fields Modifier and Type Field Description static PagingDEFAULTstatic intDEFAULT_MAX_ITEMSstatic intDEFAULT_SKIP_COUNT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxItems()The maximum number of items the client requires.intgetSkipCount()How many entries exist in the entire collection before those included in the listjava.lang.StringtoString()static PagingvalueOf(int skipCount, int maxItems)
-
-
-
Field Detail
-
DEFAULT_SKIP_COUNT
public static final int DEFAULT_SKIP_COUNT
- See Also:
- Constant Field Values
-
DEFAULT_MAX_ITEMS
public static final int DEFAULT_MAX_ITEMS
- See Also:
- Constant Field Values
-
DEFAULT
public static final Paging DEFAULT
-
-
Method Detail
-
getSkipCount
public int getSkipCount()
How many entries exist in the entire collection before those included in the list- Returns:
- Integer
-
getMaxItems
public int getMaxItems()
The maximum number of items the client requires. Defaults to 100.- Returns:
- Integer
-
valueOf
public static Paging valueOf(int skipCount, int maxItems)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-