Class Paging
- java.lang.Object
-
- org.alfresco.rest.framework.resource.parameters.Paging
-
public class Paging extends java.lang.Object
Represents 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 Paging
DEFAULT
static int
DEFAULT_MAX_ITEMS
static int
DEFAULT_SKIP_COUNT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxItems()
The maximum number of items the client requires.int
getSkipCount()
How many entries exist in the entire collection before those included in the listjava.lang.String
toString()
static Paging
valueOf(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:
toString
in classjava.lang.Object
-
-