Class BaseSortableDataProvider<T extends Serializable>
java.lang.Object
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider<T>
- All Implemented Interfaces:
Serializable
,org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator<String>
,org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<T,
,String> org.apache.wicket.markup.repeater.data.IDataProvider<T>
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
ActivationContainerProvider
,BaseSearchDataProvider
,CertCaseDtoProvider
,CertWorkItemDtoProvider
,ListDataProvider
,LoggedInUsersProvider
,RoleMiningProvider
,SelectableListDataProvider
public abstract class BaseSortableDataProvider<T extends Serializable>
extends org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
- Author:
- lazyman
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionBaseSortableDataProvider
(org.apache.wicket.Component component) BaseSortableDataProvider
(org.apache.wicket.Component component, boolean useCache) BaseSortableDataProvider
(org.apache.wicket.Component component, boolean useCache, boolean useDefaultSortingField) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCachedSize
(Map<Serializable, BaseSortableDataProvider.CachedSize> cache, BaseSortableDataProvider.CachedSize newSize) protected boolean
void
protected @NotNull List<ObjectOrdering>
createObjectOrderings
(org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sortParam) Could be overridden in subclasses.protected ObjectPaging
createPaging
(long offset, long pageSize) void
detach()
protected ModelAuditService
protected BaseSortableDataProvider.CachedSize
protected GetOperationOptionsBuilder
protected org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder
protected String
protected @NotNull Collection<SelectorOptions<GetOperationOptions>>
protected @NotNull GetOperationOptionsBuilder
protected ModelInteractionService
protected ModelService
protected GetOperationOptionsBuilder
protected GetOperationOptionsBuilder
protected PageBase
protected PageStorage
protected PrismContext
getQuery()
protected RelationRegistry
protected SchemaService
protected com.evolveum.midpoint.task.api.TaskManager
internalIterator
(long first, long count) protected abstract int
boolean
boolean
org.apache.wicket.model.IModel<Boolean>
Flag method forTablePanel
.boolean
iterator
(long first, long count) org.apache.wicket.model.IModel<T>
protected void
saveProviderPaging
(ObjectQuery query, ObjectPaging paging) void
setExportSize
(boolean exportSize) void
setQuery
(ObjectQuery query) long
size()
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
getSort, getSortState, setSort, setSort
-
Constructor Details
-
BaseSortableDataProvider
public BaseSortableDataProvider(org.apache.wicket.Component component) -
BaseSortableDataProvider
public BaseSortableDataProvider(org.apache.wicket.Component component, boolean useCache) -
BaseSortableDataProvider
public BaseSortableDataProvider(org.apache.wicket.Component component, boolean useCache, boolean useDefaultSortingField)
-
-
Method Details
-
getDefaultSortParam
-
getDefaultSortOrder
protected org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder getDefaultSortOrder() -
getModelService
-
getTaskManager
protected com.evolveum.midpoint.task.api.TaskManager getTaskManager() -
getPrismContext
-
getSchemaService
-
getOperationOptionsBuilder
-
getOperationOptionsBuilder
protected GetOperationOptionsBuilder getOperationOptionsBuilder(Collection<SelectorOptions<GetOperationOptions>> createFrom) -
getRelationRegistry
-
getModelInteractionService
-
getAuditService
-
getAvailableData
-
model
-
getPageBase
-
getQuery
-
setQuery
-
isSizeAvailableModel
Flag method forTablePanel
. If true navigation panel with paging "X to Y from Z results is shown", otherwise only "previous and next" simple paging is used.- Returns:
- By defaults it returns true.
-
checkOrderingSettings
protected boolean checkOrderingSettings() -
isDistinct
public boolean isDistinct() -
getDefaultOptionsBuilder
-
getDistinctRelatedOptions
@NotNull protected @NotNull Collection<SelectorOptions<GetOperationOptions>> getDistinctRelatedOptions() -
getDistinctRelatedOptionsBuilder
-
isOrderingDisabled
public boolean isOrderingDisabled() -
createPaging
-
createObjectOrderings
@NotNull protected @NotNull List<ObjectOrdering> createObjectOrderings(org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sortParam) Could be overridden in subclasses. -
clearCache
public void clearCache() -
iterator
-
saveProviderPaging
-
getPageStorage
-
internalIterator
-
size
public long size() -
internalSize
protected abstract int internalSize() -
getCachedSize
protected BaseSortableDataProvider.CachedSize getCachedSize(Map<Serializable, BaseSortableDataProvider.CachedSize> cache) -
addCachedSize
protected void addCachedSize(Map<Serializable, BaseSortableDataProvider.CachedSize> cache, BaseSortableDataProvider.CachedSize newSize) -
setExportSize
public void setExportSize(boolean exportSize) -
isUseCache
public boolean isUseCache() -
detach
public void detach()
-