Class BaseSortableDataProvider<T extends Serializable>
- java.lang.Object
-
- org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
-
- com.evolveum.midpoint.web.component.data.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:
BaseSearchDataProvider
,CertCaseDtoProvider
,CertWorkItemDtoProvider
,ListDataProvider
,SelectableListDataProvider
public abstract class BaseSortableDataProvider<T extends Serializable> extends org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
- Author:
- lazyman
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseSortableDataProvider.CachedSize
-
Constructor Summary
Constructors Constructor Description BaseSortableDataProvider(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
-
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
getSort, getSortState, setSort, setSort
-
-
-
-
Constructor Detail
-
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 Detail
-
getDefaultSortParam
protected String getDefaultSortParam()
-
getDefaultSortOrder
protected org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder getDefaultSortOrder()
-
getModelService
protected ModelService getModelService()
-
getTaskManager
protected TaskManager getTaskManager()
-
getPrismContext
protected PrismContext getPrismContext()
-
getSchemaService
protected SchemaService getSchemaService()
-
getOperationOptionsBuilder
protected GetOperationOptionsBuilder getOperationOptionsBuilder()
-
getOperationOptionsBuilder
protected GetOperationOptionsBuilder getOperationOptionsBuilder(Collection<SelectorOptions<GetOperationOptions>> createFrom)
-
getRelationRegistry
protected RelationRegistry getRelationRegistry()
-
getModelInteractionService
protected ModelInteractionService getModelInteractionService()
-
getAuditService
protected ModelAuditService getAuditService()
-
getPageBase
protected PageBase getPageBase()
-
getQuery
public ObjectQuery getQuery()
-
setQuery
public void setQuery(ObjectQuery query)
-
isSizeAvailableModel
public org.apache.wicket.model.IModel<Boolean> 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
protected GetOperationOptionsBuilder getDefaultOptionsBuilder()
-
getDistinctRelatedOptions
@NotNull protected @NotNull Collection<SelectorOptions<GetOperationOptions>> getDistinctRelatedOptions()
-
getDistinctRelatedOptionsBuilder
@NotNull protected @NotNull GetOperationOptionsBuilder getDistinctRelatedOptionsBuilder()
-
isOrderingDisabled
public boolean isOrderingDisabled()
-
createPaging
protected ObjectPaging createPaging(long offset, long pageSize)
-
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()
-
saveProviderPaging
protected void saveProviderPaging(ObjectQuery query, ObjectPaging paging)
-
getPageStorage
protected PageStorage getPageStorage()
-
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()
-
-