Nuxeo ECM Projects 5.6-RC1

org.nuxeo.ecm.wall
Class WallActivityStreamPageProvider

java.lang.Object
  extended by org.nuxeo.ecm.platform.query.api.AbstractPageProvider<T>
      extended by org.nuxeo.ecm.activity.AbstractActivityPageProvider<ActivityMessage>
          extended by org.nuxeo.ecm.wall.WallActivityStreamPageProvider
All Implemented Interfaces:
Serializable, PageProvider<ActivityMessage>

public class WallActivityStreamPageProvider
extends AbstractActivityPageProvider<ActivityMessage>

Since:
5.6
Author:
Thomas Roger
See Also:
Serialized Form

Field Summary
static String ACTIVITY_LINK_BUILDER_NAME_PROPERTY
           
static String ACTIVITY_STREAM_NAME_PROPERTY
           
static String CONTEXT_DOCUMENT_PROPERTY
           
static String CORE_SESSION_PROPERTY
           
static String LOCALE_PROPERTY
           
 
Fields inherited from interface org.nuxeo.ecm.platform.query.api.PageProvider
DEFAULT_MAX_PAGE_SIZE, DEFAULT_MAX_PAGE_SIZE_RUNTIME_PROP, UNKNOWN_SIZE, UNKNOWN_SIZE_AFTER_QUERY
 
Constructor Summary
WallActivityStreamPageProvider()
           
 
Method Summary
 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.
 
Methods inherited from class org.nuxeo.ecm.activity.AbstractActivityPageProvider
getNextOffset
 
Methods inherited from class org.nuxeo.ecm.platform.query.api.AbstractPageProvider
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIVITY_STREAM_NAME_PROPERTY

public static final String ACTIVITY_STREAM_NAME_PROPERTY
See Also:
Constant Field Values

ACTIVITY_LINK_BUILDER_NAME_PROPERTY

public static final String ACTIVITY_LINK_BUILDER_NAME_PROPERTY
See Also:
Constant Field Values

CONTEXT_DOCUMENT_PROPERTY

public static final String CONTEXT_DOCUMENT_PROPERTY
See Also:
Constant Field Values

LOCALE_PROPERTY

public static final String LOCALE_PROPERTY
See Also:
Constant Field Values

CORE_SESSION_PROPERTY

public static final String CORE_SESSION_PROPERTY
See Also:
Constant Field Values
Constructor Detail

WallActivityStreamPageProvider

public WallActivityStreamPageProvider()
Method Detail

getCurrentPage

public List<ActivityMessage> getCurrentPage()
Description copied from interface: PageProvider
Returns the current page of results.

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.

Specified by:
getCurrentPage in interface PageProvider<ActivityMessage>
Specified by:
getCurrentPage in class AbstractPageProvider<ActivityMessage>
Returns:
the current page

isSortable

public boolean isSortable()
Description copied from interface: PageProvider
Returns if this provider is sortable

Specified by:
isSortable in interface PageProvider<ActivityMessage>
Overrides:
isSortable in class AbstractPageProvider<ActivityMessage>

refresh

public void refresh()
Description copied from interface: PageProvider
Forces refresh of the current page.

Specified by:
refresh in interface PageProvider<ActivityMessage>
Overrides:
refresh in class AbstractPageProvider<ActivityMessage>

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.