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
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected List<DocumentModel>
protected static final String
protected static final String
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
boolean
This page provider does not support sort for now => override what may be contributed in the definitionprotected void
Page change hook, to override for custom behaviorvoid
refresh()
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:
isSortable
in interfacePageProvider<T>
- Overrides:
isSortable
in classAbstractPageProvider<T>
-
pageChanged
protected void pageChanged()Description copied from class:AbstractPageProvider
Page change hook, to override for custom behaviorWhen overriding it, call
super.pageChanged()
as last statement to make sure that thePageProviderChangedListener
is called with the up-to-date @{code PageProvider} state.- Overrides:
pageChanged
in classAbstractPageProvider<T>
-
refresh
public void refresh()Description copied from class:AbstractPageProvider
Refresh hook, to override for custom behaviorWhen overriding it, call
super.refresh()
as last statement to make sure that thePageProviderChangedListener
is called with the up-to-date @{code PageProvider} state.- Specified by:
refresh
in interfacePageProvider<T>
- Overrides:
refresh
in classAbstractPageProvider<T>
-