Class AbstractGroupsPageProvider<T>
- java.lang.Object
-
- org.nuxeo.ecm.platform.query.api.AbstractPageProvider<T>
-
- org.nuxeo.ecm.platform.usermanager.providers.AbstractGroupsPageProvider<T>
-
- All Implemented Interfaces:
Serializable,PageProvider<T>
- Direct Known Subclasses:
GroupsPageProvider,NuxeoGroupsPageProvider
public abstract class AbstractGroupsPageProvider<T> extends AbstractPageProvider<T>
Abstract Page provider listing groups.This page provider requires one parameter: the first one to be filled with the search string.
This page provider requires the property
GROUPS_LISTING_MODE_PROPERTYto be filled with a the listing mode to use.- Since:
- 5.8
- Author:
- Thomas Roger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringALL_MODEprotected static StringGROUPS_LISTING_MODE_PROPERTYprotected List<DocumentModel>pageGroupsprotected static StringSEARCH_ONLY_MODEprotected static StringSEARCH_OVERFLOW_ERROR_MESSAGE-
Fields inherited from class org.nuxeo.ecm.platform.query.api.AbstractPageProvider
currentEntryIndex, currentHigherNonEmptyPageIndex, currentSelectPage, definition, error, errorMessage, highlights, maxPageSize, name, offset, PAGEPROVIDER_TRACK_PROPERTY_NAME, pageProviderChangedListener, pageSize, pageSizeOptions, parameters, properties, quickFilters, resultsCount, searchDocumentModel, selectedEntries, SKIPPED_SCHEMAS_FOR_SEARCHFIELD, sortable, sortInfos, tracking
-
Fields inherited from interface org.nuxeo.ecm.platform.query.api.PageProvider
DEFAULT_MAX_PAGE_SIZE, DEFAULT_MAX_PAGE_SIZE_RUNTIME_PROP, HIGHLIGHT_CTX_DATA, PAGE_LIMIT_UNKNOWN, SKIP_AGGREGATES_PROP, UNKNOWN_SIZE, UNKNOWN_SIZE_AFTER_QUERY
-
-
Constructor Summary
Constructors Constructor Description AbstractGroupsPageProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DocumentModel>computeCurrentPage()protected StringgetFirstParameter()protected StringgetGroupListingMode()booleanisSortable()This page provider does not support sort for now => override what may be contributed in the definitionprotected voidpageChanged()Page change hook, to override for custom behaviorvoidrefresh()Refresh hook, to override for custom behaviorprotected List<DocumentModel>searchAllGroups()protected List<DocumentModel>searchGroups()-
Methods inherited from class org.nuxeo.ecm.platform.query.api.AbstractPageProvider
addQuickFilter, addSortInfo, fireSearchEvent, firstPage, getAggregateDefinitions, getAggregates, getAvailableQuickFilters, getBooleanProperty, getCurrentEntry, getCurrentHigherNonEmptyPageIndex, getCurrentPage, getCurrentPageIndex, getCurrentPageOffset, getCurrentPageSize, getCurrentPageStatus, getCurrentSelectPage, getDefaultMaxPageSize, getDefinition, getError, getErrorMessage, getHighlights, getMaxNumberOfEmptyPages, getMaxPageSize, getMinMaxPageSize, getName, getNumberOfPages, getPageLimit, getPageSize, getPageSizeOptions, getParameters, getParametersChanged, getProperties, getQuickFilters, getResultsCount, getResultsCountLimit, getSearchDocumentModel, getSortInfo, getSortInfoIndex, getSortInfos, hasAggregateSupport, hasChangedParameters, hasError, incorporateAggregates, isLastPageAvailable, isNextEntryAvailable, isNextPageAvailable, isPreviousEntryAvailable, isPreviousPageAvailable, isSkipAggregates, isTrackingEnabled, lastPage, nextEntry, nextPage, notifyPageChanged, notifyRefresh, previousEntry, previousPage, searchDocumentModelChanged, setCurrentEntry, setCurrentEntryIndex, setCurrentHigherNonEmptyPageIndex, setCurrentPage, setCurrentPageIndex, setCurrentPageOffset, setDefinition, setHighlights, setMaxPageSize, setName, setPageProviderChangedListener, setPageSize, setPageSizeOptions, setParameters, setProperties, setQuickFilters, setResultsCount, setSearchDocumentModel, setSelectedEntries, setSortable, setSortInfo, setSortInfo, setSortInfos, sortInfoChanged
-
-
-
-
Field Detail
-
GROUPS_LISTING_MODE_PROPERTY
protected static final String GROUPS_LISTING_MODE_PROPERTY
- See Also:
- Constant Field Values
-
ALL_MODE
protected static final String ALL_MODE
- See Also:
- Constant Field Values
-
SEARCH_ONLY_MODE
protected static final String SEARCH_ONLY_MODE
- See Also:
- Constant Field Values
-
SEARCH_OVERFLOW_ERROR_MESSAGE
protected static final String SEARCH_OVERFLOW_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
pageGroups
protected List<DocumentModel> pageGroups
-
-
Method Detail
-
computeCurrentPage
public List<DocumentModel> computeCurrentPage()
-
searchAllGroups
protected List<DocumentModel> searchAllGroups()
-
searchGroups
protected List<DocumentModel> searchGroups()
-
getGroupListingMode
protected String getGroupListingMode()
-
getFirstParameter
protected String getFirstParameter()
-
isSortable
public boolean isSortable()
This page provider does not support sort for now => override what may be contributed in the definition- Specified by:
isSortablein interfacePageProvider<T>- Overrides:
isSortablein classAbstractPageProvider<T>
-
pageChanged
protected void pageChanged()
Description copied from class:AbstractPageProviderPage change hook, to override for custom behaviorWhen overriding it, call
super.pageChanged()as last statement to make sure that thePageProviderChangedListeneris called with the up-to-date @{code PageProvider} state.- Overrides:
pageChangedin classAbstractPageProvider<T>
-
refresh
public void refresh()
Description copied from class:AbstractPageProviderRefresh hook, to override for custom behaviorWhen overriding it, call
super.refresh()as last statement to make sure that thePageProviderChangedListeneris called with the up-to-date @{code PageProvider} state.- Specified by:
refreshin interfacePageProvider<T>- Overrides:
refreshin classAbstractPageProvider<T>
-
-