public class MiniMessagePageProvider extends AbstractActivityPageProvider<MiniMessage> implements PageProvider<MiniMessage>
This page provider requires two properties: the first one to be filled with the actor, and the second one to be filled with the relationship kind to use.
Modifier and Type | Field and Description |
---|---|
static String |
ACTOR_PROPERTY |
static String |
FOR_ACTOR_STREAM_TYPE |
static String |
FROM_ACTOR_STREAM_TYPE |
static String |
RELATIONSHIP_KIND_PROPERTY |
static String |
STREAM_TYPE_PROPERTY |
DEFAULT_MAX_PAGE_SIZE, UNKNOWN_SIZE, UNKNOWN_SIZE_AFTER_QUERY
Constructor and Description |
---|
MiniMessagePageProvider() |
Modifier and Type | Method and Description |
---|---|
List<MiniMessage> |
getCurrentPage()
Returns the current page of results.
|
boolean |
isSortable()
Returns if this provider is sortable
|
void |
refresh()
Forces refresh of the current page.
|
getNextOffset
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 ACTOR_PROPERTY
public static final String RELATIONSHIP_KIND_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<MiniMessage> 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<MiniMessage>
getCurrentPage
in class AbstractPageProvider<MiniMessage>
public boolean isSortable()
PageProvider
isSortable
in interface PageProvider<MiniMessage>
isSortable
in class AbstractPageProvider<MiniMessage>
public void refresh()
PageProvider
refresh
in interface PageProvider<MiniMessage>
refresh
in class AbstractPageProvider<MiniMessage>
Copyright © 2011 Nuxeo SA. All Rights Reserved.