public abstract class PaginableObject<T> extends DefaultObject
To be extended by WebObject returning paginable entries based on a PageProvider
.
Modifier and Type | Field and Description |
---|---|
protected Long |
currentPageIndex |
protected String |
maxResults |
protected Long |
pageSize |
Constructor and Description |
---|
PaginableObject() |
Modifier and Type | Method and Description |
---|---|
protected Long |
extractLongParam(javax.servlet.http.HttpServletRequest request,
String paramName,
Long defaultValue) |
protected abstract PageProviderDefinition |
getPageProviderDefinition() |
Paginable<T> |
getPaginableEntries() |
protected Paginable<T> |
getPaginableEntries(PageProvider<T> pageProvider) |
protected Object[] |
getParams() |
protected DocumentModel |
getSearchDocument() |
protected void |
initialize(Object... args) |
disptachAdapter, isAdapter
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
protected Long currentPageIndex
protected String maxResults
public PaginableObject()
protected void initialize(Object... args)
initialize
in class AbstractResource<ResourceTypeImpl>
protected abstract PageProviderDefinition getPageProviderDefinition()
protected DocumentModel getSearchDocument()
public Paginable<T> getPaginableEntries()
protected Paginable<T> getPaginableEntries(PageProvider<T> pageProvider)
protected Long extractLongParam(javax.servlet.http.HttpServletRequest request, String paramName, Long defaultValue)
Copyright © 2015 Nuxeo SA. All rights reserved.