Class ItemListResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.ItemListResponse
- All Implemented Interfaces:
Serializable
Response for a item list request
- Author:
- Clemens
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructor needed by JAXBItemListResponse
(Message message, ResponseInfo responseInfo) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends ContentNodeItem>
getItems()
Get total number of items presentTrue if more items are available (paging)void
setHasMoreItems
(Boolean hasMoreItems) Set true when more items are availablevoid
setItems
(List<? extends ContentNodeItem> items) NOTE: items won't be listed correctly until a setter is definedvoid
setNumItems
(Integer numItems) Set the total number of items presentMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Constructor Details
-
ItemListResponse
public ItemListResponse()Empty constructor needed by JAXB -
ItemListResponse
-
-
Method Details
-
getItems
-
isHasMoreItems
True if more items are available (paging)- Returns:
- true if more items are present
-
getNumItems
Get total number of items present- Returns:
- total number of items present
-
setItems
NOTE: items won't be listed correctly until a setter is defined- Parameters:
items
-
-
setHasMoreItems
Set true when more items are available- Parameters:
hasMoreItems
- true if more items are available
-
setNumItems
Set the total number of items present- Parameters:
numItems
- total number of items present
-