Class PaginableObject<T>
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.webengine.model.impl.DefaultObject
-
- org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject<T>
-
- Direct Known Subclasses:
AbstractUMRootObject
,DirectoryObject
,TaskObject
public abstract class PaginableObject<T> extends DefaultObject
Paginable WebObject.To be extended by WebObject returning paginable entries based on a
PageProvider
.- Since:
- 5.8
-
-
Field Summary
Fields Modifier and Type Field Description protected Long
currentPageIndex
protected String
maxResults
protected Long
offset
protected Long
pageSize
-
Constructor Summary
Constructors Constructor Description PaginableObject()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
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
-
-
-
-
Field Detail
-
currentPageIndex
protected Long currentPageIndex
-
maxResults
protected String maxResults
-
-
Constructor Detail
-
PaginableObject
public PaginableObject()
-
-
Method Detail
-
initialize
protected void initialize(Object... args)
- Overrides:
initialize
in classAbstractResource<ResourceTypeImpl>
-
getPageProviderDefinition
protected abstract PageProviderDefinition getPageProviderDefinition()
-
getSearchDocument
protected DocumentModel getSearchDocument()
-
getPaginableEntries
public Paginable<T> getPaginableEntries()
-
getPaginableEntries
protected Paginable<T> getPaginableEntries(PageProvider<T> pageProvider)
-
extractLongParam
protected Long extractLongParam(javax.servlet.http.HttpServletRequest request, String paramName, Long defaultValue)
-
-