Class SelectableBeanContainerDataProvider<C extends Containerable>
- java.lang.Object
-
- org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
-
- com.evolveum.midpoint.web.component.data.BaseSortableDataProvider<T>
-
- com.evolveum.midpoint.web.component.data.BaseSearchDataProvider<C,SelectableBean<C>>
-
- com.evolveum.midpoint.web.component.data.SelectableBeanContainerDataProvider<C>
-
- All Implemented Interfaces:
ISelectableDataProvider<SelectableBean<C>>
,Serializable
,org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator<String>
,org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<SelectableBean<C>,String>
,org.apache.wicket.markup.repeater.data.IDataProvider<SelectableBean<C>>
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
SelectableBeanObjectDataProvider
public class SelectableBeanContainerDataProvider<C extends Containerable> extends BaseSearchDataProvider<C,SelectableBean<C>> implements ISelectableDataProvider<SelectableBean<C>>
- Author:
- lazyman, semancik
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.evolveum.midpoint.web.component.data.BaseSortableDataProvider
BaseSortableDataProvider.CachedSize
-
-
Constructor Summary
Constructors Constructor Description SelectableBeanContainerDataProvider(org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Search<C>> search, Set<? extends C> selected, boolean useDefaultSortingField)
-
Method Summary
-
Methods inherited from class com.evolveum.midpoint.web.component.data.BaseSearchDataProvider
addQueryVariables, detach, getCompiledObjectCollectionView, getCustomizeContentQuery, getQuery, getSearchModel, getType, getVariables, setCompiledObjectCollectionView, size
-
Methods inherited from class com.evolveum.midpoint.web.component.data.BaseSortableDataProvider
clearCache, createObjectOrderings, createPaging, getAuditService, getAvailableData, getDefaultOptionsBuilder, getDefaultSortOrder, getDefaultSortParam, getDistinctRelatedOptions, getDistinctRelatedOptionsBuilder, getModelInteractionService, getModelService, getOperationOptionsBuilder, getOperationOptionsBuilder, getPageBase, getPageStorage, getPrismContext, getRelationRegistry, getSchemaService, getTaskManager, isDistinct, isSizeAvailableModel, isUseCache, iterator, model, saveProviderPaging, setExportSize, setQuery
-
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
getSort, getSortState, setSort, setSort
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.markup.repeater.data.IDataProvider
detach, iterator, model, size
-
Methods inherited from interface com.evolveum.midpoint.web.component.data.ISelectableDataProvider
setQuery
-
-
-
-
Method Detail
-
clearSelectedObjects
public void clearSelectedObjects()
-
checkOrderingSettings
protected boolean checkOrderingSettings()
- Overrides:
checkOrderingSettings
in classBaseSortableDataProvider<SelectableBean<C extends Containerable>>
-
internalIterator
public Iterator<SelectableBean<C>> internalIterator(long offset, long pageSize)
- Specified by:
internalIterator
in classBaseSortableDataProvider<SelectableBean<C extends Containerable>>
-
createDataObjectWrappers
public List<SelectableBean<C>> createDataObjectWrappers(Class<? extends C> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult result) throws CommonException
- Throws:
CommonException
-
searchObjects
protected List<C> searchObjects(Class<? extends C> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult result) throws CommonException
- Throws:
CommonException
-
handleNotSuccessOrHandledErrorInIterator
protected Iterator<SelectableBean<C>> handleNotSuccessOrHandledErrorInIterator(OperationResult result)
-
createDataObjectWrapper
public SelectableBean<C> createDataObjectWrapper(C obj)
-
internalSize
protected int internalSize()
- Specified by:
internalSize
in classBaseSortableDataProvider<SelectableBean<C extends Containerable>>
-
countObjects
protected Integer countObjects(Class<? extends C> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, Task task, OperationResult result) throws CommonException
- Throws:
CommonException
-
getCachedSize
protected BaseSortableDataProvider.CachedSize getCachedSize(Map<Serializable,BaseSortableDataProvider.CachedSize> cache)
- Overrides:
getCachedSize
in classBaseSortableDataProvider<SelectableBean<C extends Containerable>>
-
addCachedSize
protected void addCachedSize(Map<Serializable,BaseSortableDataProvider.CachedSize> cache, BaseSortableDataProvider.CachedSize newSize)
- Overrides:
addCachedSize
in classBaseSortableDataProvider<SelectableBean<C extends Containerable>>
-
isUseObjectCounting
protected boolean isUseObjectCounting()
-
getOptions
public Collection<SelectorOptions<GetOperationOptions>> getOptions()
-
setOptions
public void setOptions(Collection<SelectorOptions<GetOperationOptions>> options)
-
isEmptyListOnNullQuery
public boolean isEmptyListOnNullQuery()
-
setEmptyListOnNullQuery
public void setEmptyListOnNullQuery(boolean emptyListOnNullQuery)
-
isExport
public boolean isExport()
-
setExport
public void setExport(boolean export)
-
setDefaultCountIfNull
public void setDefaultCountIfNull(int defaultCountIfNull)
-
isOrderingDisabled
public boolean isOrderingDisabled()
- Overrides:
isOrderingDisabled
in classBaseSortableDataProvider<SelectableBean<C extends Containerable>>
-
setForPreview
public void setForPreview(boolean forPreview)
-
-