public class DocumentHistoryPageProvider extends AuditPageProvider
Because of the way the Audit log is stored (i.e. mainly stores events related to the live document), retrieving history of a version or of a proxy requires some additional processing.
This PageProvider
does not accept a fixed part in the whereclause because it is automatically build by the
provider itself. This PageProvider
expect to have :
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
protected Object[] |
newParams |
auditQuery, auditQueryParams, CORE_SESSION_PROPERTY, UICOMMENTS_PROPERTY
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
DEFAULT_MAX_PAGE_SIZE, DEFAULT_MAX_PAGE_SIZE_RUNTIME_PROP, HIGHLIGHT_CTX_DATA, PAGE_LIMIT_UNKNOWN, UNKNOWN_SIZE, UNKNOWN_SIZE_AFTER_QUERY
Constructor and Description |
---|
DocumentHistoryPageProvider() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowSimplePattern() |
protected String |
getFixedPart() |
Object[] |
getParameters() |
List<SortInfo> |
getSortInfos()
Returns the complete list of sorting info for this provider
|
boolean |
hasChangedParameters(Object[] parameters)
Test if provider parameters have changed
|
buildAuditQuery, convertParam, getCurrentPage, getResultsCount, getSortPart, isNonNullParam, preprocessCommentsIfNeeded, refresh, toString
addQuickFilter, addSortInfo, fireSearchEvent, firstPage, getAggregateDefinitions, getAggregates, getAvailableQuickFilters, getBooleanProperty, getCurrentEntry, getCurrentHigherNonEmptyPageIndex, getCurrentPageIndex, getCurrentPageOffset, getCurrentPageSize, getCurrentPageStatus, getCurrentSelectPage, getDefaultMaxPageSize, getDefinition, getError, getErrorMessage, getHighlights, getMaxNumberOfEmptyPages, getMaxPageSize, getMinMaxPageSize, getName, getNumberOfPages, getPageLimit, getPageSize, getPageSizeOptions, getParametersChanged, getProperties, getQuickFilters, getResultsCountLimit, getSearchDocumentModel, getSortInfo, getSortInfoIndex, hasAggregateSupport, hasError, incorporateAggregates, isLastPageAvailable, isNextEntryAvailable, isNextPageAvailable, isPreviousEntryAvailable, isPreviousPageAvailable, isSortable, isTrackingEnabled, lastPage, nextEntry, nextPage, notifyPageChanged, notifyRefresh, pageChanged, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addQuickFilter, addSortInfo, firstPage, getAggregateDefinitions, getAggregates, getAvailableQuickFilters, getCurrentEntry, getCurrentPageIndex, getCurrentPageOffset, getCurrentPageSize, getCurrentPageStatus, getCurrentSelectPage, getDefinition, getError, getErrorMessage, getHighlights, getMaxPageSize, getName, getNumberOfPages, getPageLimit, getPageSize, getPageSizeOptions, getProperties, getQuickFilters, getResultsCountLimit, getSearchDocumentModel, getSortInfo, getSortInfoIndex, hasAggregateSupport, hasError, isLastPageAvailable, isNextEntryAvailable, isNextPageAvailable, isPreviousEntryAvailable, isPreviousPageAvailable, isSortable, lastPage, nextEntry, nextPage, previousEntry, previousPage, setCurrentEntry, setCurrentEntryIndex, setCurrentPage, setCurrentPageIndex, setCurrentPageOffset, setDefinition, setHighlights, setMaxPageSize, setName, setPageProviderChangedListener, setPageSize, setPageSizeOptions, setParameters, setProperties, setQuickFilters, setResultsCount, setSearchDocumentModel, setSelectedEntries, setSortable, setSortInfo, setSortInfo, setSortInfos
protected org.apache.commons.logging.Log log
public DocumentHistoryPageProvider()
protected String getFixedPart()
getFixedPart
in class AuditPageProvider
protected boolean allowSimplePattern()
allowSimplePattern
in class AuditPageProvider
public List<SortInfo> getSortInfos()
PageProvider
getSortInfos
in interface PageProvider<LogEntry>
getSortInfos
in class AbstractPageProvider<LogEntry>
public Object[] getParameters()
getParameters
in interface PageProvider<LogEntry>
getParameters
in class AbstractPageProvider<LogEntry>
public boolean hasChangedParameters(Object[] parameters)
PageProvider
hasChangedParameters
in interface PageProvider<LogEntry>
hasChangedParameters
in class AbstractPageProvider<LogEntry>
Copyright © 2018 Nuxeo. All rights reserved.