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
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_PROPERTY to be filled with a the listing mode
to use.
- Since:
- 5.8
- Author:
- Thomas Roger
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected List<DocumentModel>protected static final Stringprotected static final StringFields 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, trackingFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected StringbooleanThis page provider does not support sort for now => override what may be contributed in the definitionprotected voidPage change hook, to override for custom behaviorvoidrefresh()Refresh hook, to override for custom behaviorprotected List<DocumentModel>protected List<DocumentModel>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 Details
-
GROUPS_LISTING_MODE_PROPERTY
- See Also:
-
ALL_MODE
- See Also:
-
SEARCH_ONLY_MODE
- See Also:
-
SEARCH_OVERFLOW_ERROR_MESSAGE
- See Also:
-
pageGroups
-
-
Constructor Details
-
AbstractGroupsPageProvider
public AbstractGroupsPageProvider()
-
-
Method Details
-
computeCurrentPage
-
searchAllGroups
-
searchGroups
-
getGroupListingMode
-
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>
-