Package com.ithit.webdav.server.paging
Class PageResults
java.lang.Object
com.ithit.webdav.server.paging.PageResults
Represents a single page results returned from the
Folder.getChildren(List, Long, Long, List)
and Search.search(String, SearchOptions, List, Long, Long)
methods.-
Constructor Summary
ConstructorDescriptionPageResults
(List<? extends HierarchyItem> page, Long totalItems) Initializes a new instance of thePageResults
class. -
Method Summary
Modifier and TypeMethodDescriptionList<? extends HierarchyItem>
getPage()
Items that correspond to the requested page and sorting.Total number of items in the folder or in search results.
-
Constructor Details
-
PageResults
Initializes a new instance of thePageResults
class.- Parameters:
page
- Items that correspond to the requested page and sorting.totalItems
- Total number of items in the folder or in search results.
-
-
Method Details
-
getPage
Items that correspond to the requested page and sorting.- Returns:
- List of items that represent items on a page.
-
getTotalItems
Total number of items in the folder or in search results. This number can be used by the client application to display number of pages available. Set this property to null if total number of items is unknown. The total number of items will not be returned to the client in this case.- Returns:
- number of total items.
-