public class UserTaskPageProvider extends AbstractPageProvider<DashBoardItem> implements PageProvider<DashBoardItem>
DashBoardItem
elements.
Useful for content views displaying users' tasks.
WARNING: this page provider does not handle sorting, and its pagination management is not efficient (done in post filter).
This page provider requires the property CORE_SESSION_PROPERTY
to
be filled with a core session. It also accepts an optional property
FILTER_DOCS_FROM_TRASH
, defaulting to true.
Modifier and Type | Field and Description |
---|---|
static String |
CORE_SESSION_PROPERTY |
static String |
FILTER_DOCS_FROM_TRASH |
DEFAULT_MAX_PAGE_SIZE, UNKNOWN_SIZE, UNKNOWN_SIZE_AFTER_QUERY
Constructor and Description |
---|
UserTaskPageProvider() |
Modifier and Type | Method and Description |
---|---|
List<DashBoardItem> |
getCurrentPage()
Returns the current page of results.
|
boolean |
isSortable()
This page provider does not support sort for now => override what may be
contributed in the definition
|
void |
refresh()
Forces refresh of the current page.
|
addSortInfo, firstPage, getCurrentEntry, getCurrentHigherNonEmptyPageIndex, getCurrentPageIndex, getCurrentPageOffset, getCurrentPageSize, getCurrentPageStatus, getCurrentSelectPage, getDefinition, getError, getErrorMessage, getMaxNumberOfEmptyPages, getMaxPageSize, getMinMaxPageSize, getName, getNumberOfPages, getPageSize, getParameters, getProperties, getResultsCount, getSearchDocumentModel, getSortInfo, getSortInfoIndex, getSortInfos, hasError, isLastPageAvailable, isNextEntryAvailable, isNextPageAvailable, isPreviousEntryAvailable, isPreviousPageAvailable, last, lastPage, next, nextEntry, nextPage, previous, previousEntry, previousPage, rewind, setCurrentEntry, setCurrentEntryIndex, setCurrentHigherNonEmptyPageIndex, setCurrentPage, setCurrentPageOffset, setDefinition, setMaxPageSize, setName, setPageSize, setParameters, setProperties, setResultsCount, setSearchDocumentModel, setSelectedEntries, setSortable, setSortInfo, setSortInfo, setSortInfos
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSortInfo, firstPage, getCurrentEntry, getCurrentPageIndex, getCurrentPageOffset, getCurrentPageSize, getCurrentPageStatus, getCurrentSelectPage, getDefinition, getError, getErrorMessage, getMaxPageSize, getName, getNumberOfPages, getPageSize, getParameters, getProperties, getResultsCount, getSearchDocumentModel, getSortInfo, getSortInfoIndex, getSortInfos, hasError, isLastPageAvailable, isNextEntryAvailable, isNextPageAvailable, isPreviousEntryAvailable, isPreviousPageAvailable, lastPage, nextEntry, nextPage, previousEntry, previousPage, setCurrentEntry, setCurrentEntryIndex, setCurrentPage, setCurrentPageOffset, setDefinition, setMaxPageSize, setName, setPageSize, setParameters, setProperties, setResultsCount, setSearchDocumentModel, setSelectedEntries, setSortable, setSortInfo, setSortInfo, setSortInfos
public static final String CORE_SESSION_PROPERTY
public static final String FILTER_DOCS_FROM_TRASH
public List<DashBoardItem> getCurrentPage()
PageProvider
This method is designed to be called from higher levels. It therefore ensures cheapness of repeated calls, rather than data consistency. There is a refresh() method for that.
getCurrentPage
in interface PageProvider<DashBoardItem>
getCurrentPage
in class AbstractPageProvider<DashBoardItem>
public boolean isSortable()
isSortable
in interface PageProvider<DashBoardItem>
isSortable
in class AbstractPageProvider<DashBoardItem>
public void refresh()
PageProvider
refresh
in interface PageProvider<DashBoardItem>
refresh
in class AbstractPageProvider<DashBoardItem>
Copyright © 2011 Nuxeo SA. All Rights Reserved.