Class ItemListResponse

java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.ItemListResponse
All Implemented Interfaces:
Serializable

public class ItemListResponse extends GenericResponse
Response for a item list request
Author:
Clemens
See Also:
  • Constructor Details

    • ItemListResponse

      public ItemListResponse()
      Empty constructor needed by JAXB
    • ItemListResponse

      public ItemListResponse(Message message, ResponseInfo responseInfo)
  • Method Details

    • getItems

      public List<? extends ContentNodeItem> getItems()
    • isHasMoreItems

      public Boolean isHasMoreItems()
      True if more items are available (paging)
      Returns:
      true if more items are present
    • getNumItems

      public Integer getNumItems()
      Get total number of items present
      Returns:
      total number of items present
    • setItems

      public void setItems(List<? extends ContentNodeItem> items)
      NOTE: items won't be listed correctly until a setter is defined
      Parameters:
      items -
    • setHasMoreItems

      public void setHasMoreItems(Boolean hasMoreItems)
      Set true when more items are available
      Parameters:
      hasMoreItems - true if more items are available
    • setNumItems

      public void setNumItems(Integer numItems)
      Set the total number of items present
      Parameters:
      numItems - total number of items present