Package org.nuxeo.client.objects
Class PaginableEntity<E>
- java.lang.Object
-
- org.nuxeo.client.objects.Entity
-
- org.nuxeo.client.objects.PaginableEntity<E>
-
- Type Parameters:
E- The underlying entity type.
- All Implemented Interfaces:
java.io.Serializable
public class PaginableEntity<E> extends Entity
Paginable entity is meant for entity using paginable mechanism.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intcurrentPageIndexprotected intcurrentPageSizeprotected java.util.List<E>entriesprotected java.lang.StringerrorMessageprotected java.lang.BooleanhasErrorprotected java.lang.BooleanisLastPageAvailableprotected java.lang.BooleanisNextPageAvailableprotected java.lang.BooleanisPaginableprotected java.lang.BooleanisPreviousPageAvailableprotected java.lang.BooleanisSortableprotected intmaxPageSizeprotected intnumberOfPagesprotected intpageCountprotected intpageIndexprotected intpageSizeprotected intresultsCountprotected inttotalSize-
Fields inherited from class org.nuxeo.client.objects.Entity
entityType
-
-
Constructor Summary
Constructors Constructor Description PaginableEntity(java.lang.String entityType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentPageIndex()intgetCurrentPageSize()java.util.List<E>getEntries()EgetEntry(int index)java.lang.StringgetErrorMessage()intgetMaxPageSize()intgetNumberOfPages()intgetPageCount()intgetPageIndex()intgetPageSize()intgetResultsCount()intgetTotalSize()booleanhasError()booleanisLastPageAvailable()booleanisNextPageAvailable()booleanisPaginable()booleanisPreviousPageAvailable()booleanisSortable()static booleanisTrue(java.lang.Boolean bool)intsize()java.util.stream.Stream<E>streamEntries()-
Methods inherited from class org.nuxeo.client.objects.Entity
getEntityType
-
-
-
-
Field Detail
-
entries
protected java.util.List<E> entries
-
resultsCount
protected int resultsCount
-
pageSize
protected int pageSize
-
maxPageSize
protected int maxPageSize
-
currentPageSize
protected int currentPageSize
-
currentPageIndex
protected int currentPageIndex
-
numberOfPages
protected int numberOfPages
-
totalSize
protected int totalSize
-
pageIndex
protected int pageIndex
-
pageCount
protected int pageCount
-
isPaginable
protected java.lang.Boolean isPaginable
-
isPreviousPageAvailable
protected java.lang.Boolean isPreviousPageAvailable
-
isNextPageAvailable
protected java.lang.Boolean isNextPageAvailable
-
isLastPageAvailable
protected java.lang.Boolean isLastPageAvailable
-
isSortable
protected java.lang.Boolean isSortable
-
hasError
protected java.lang.Boolean hasError
-
errorMessage
protected java.lang.String errorMessage
-
-
Method Detail
-
getEntries
public java.util.List<E> getEntries()
-
streamEntries
public java.util.stream.Stream<E> streamEntries()
-
getEntry
public E getEntry(int index)
-
size
public int size()
-
getResultsCount
public int getResultsCount()
-
getPageSize
public int getPageSize()
-
getMaxPageSize
public int getMaxPageSize()
-
getCurrentPageSize
public int getCurrentPageSize()
-
getCurrentPageIndex
public int getCurrentPageIndex()
-
getNumberOfPages
public int getNumberOfPages()
-
getTotalSize
public int getTotalSize()
-
getPageIndex
public int getPageIndex()
-
getPageCount
public int getPageCount()
-
isPaginable
public boolean isPaginable()
-
isPreviousPageAvailable
public boolean isPreviousPageAvailable()
-
isNextPageAvailable
public boolean isNextPageAvailable()
-
isLastPageAvailable
public boolean isLastPageAvailable()
-
isSortable
public boolean isSortable()
-
hasError
public boolean hasError()
-
getErrorMessage
public java.lang.String getErrorMessage()
-
isTrue
public static boolean isTrue(java.lang.Boolean bool)
-
-