public class UserActivityStreamPageProvider extends AbstractActivityPageProvider<ActivityMessage>
This page provider requires four properties:
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTOR_PROPERTY |
static String |
CORE_SESSION_PROPERTY |
static String |
FOR_ACTOR_STREAM_TYPE |
static String |
FROM_ACTOR_STREAM_TYPE |
static String |
LOCALE_PROPERTY |
static String |
STREAM_TYPE_PROPERTY |
DEFAULT_MAX_PAGE_SIZE, UNKNOWN_SIZE, UNKNOWN_SIZE_AFTER_QUERY| Constructor and Description |
|---|
UserActivityStreamPageProvider() |
| Modifier and Type | Method and Description |
|---|---|
List<ActivityMessage> |
getCurrentPage()
Returns the current page of results.
|
boolean |
isSortable()
Returns if this provider is sortable
|
void |
refresh()
Forces refresh of the current page.
|
getNextOffsetaddSortInfo, 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, setSortInfospublic static final String ACTOR_PROPERTY
public static final String LOCALE_PROPERTY
public static final String CORE_SESSION_PROPERTY
public static final String STREAM_TYPE_PROPERTY
public static final String FOR_ACTOR_STREAM_TYPE
public static final String FROM_ACTOR_STREAM_TYPE
public List<ActivityMessage> getCurrentPage()
PageProviderThis 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<ActivityMessage>getCurrentPage in class AbstractPageProvider<ActivityMessage>public boolean isSortable()
PageProviderisSortable in interface PageProvider<ActivityMessage>isSortable in class AbstractPageProvider<ActivityMessage>public void refresh()
PageProviderrefresh in interface PageProvider<ActivityMessage>refresh in class AbstractPageProvider<ActivityMessage>Copyright © 2011 Nuxeo SA. All Rights Reserved.