Class SelectableBeanContainerDataProvider<C extends Containerable>
- java.lang.Object
-
- org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
-
- com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider<T>
-
- com.evolveum.midpoint.gui.impl.component.data.provider.BaseSearchDataProvider<T,SelectableBean<T>>
-
- com.evolveum.midpoint.gui.impl.component.data.provider.SelectableBeanDataProvider<C>
-
- com.evolveum.midpoint.gui.impl.component.data.provider.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:
ProcessedObjectsProvider
,RelatedObjectsProvider
public class SelectableBeanContainerDataProvider<C extends Containerable> extends SelectableBeanDataProvider<C>
- Author:
- lazyman, semancik
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
BaseSortableDataProvider.CachedSize
-
-
Constructor Summary
Constructors Constructor Description SelectableBeanContainerDataProvider(org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Search<C>> search, Set<C> selected, boolean useDefaultSortingField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCachedSize(Map<Serializable,BaseSortableDataProvider.CachedSize> cache, BaseSortableDataProvider.CachedSize newSize)
protected boolean
checkOrderingSettings()
protected Integer
countObjects(Class<C> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result)
protected BaseSortableDataProvider.CachedSize
getCachedSize(Map<Serializable,BaseSortableDataProvider.CachedSize> cache)
protected boolean
match(C selectedValue, C foundValue)
protected List<C>
searchObjects(Class<C> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult result)
-
Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.SelectableBeanDataProvider
clearSelectedObjects, createDataObjectWrapper, getOptions, getSelected, handleNotSuccessOrHandledErrorInIterator, internalIterator, internalSize, isEmptyListOnNullQuery, isExport, isUseObjectCounting, postProcessOptions, preprocessSelectedDataInternal, setDefaultCountIfNull, setEmptyListOnNullQuery, setExport, setForPreview, setOptions
-
Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSearchDataProvider
addQueryVariables, detach, getCompiledObjectCollectionView, getCustomizeContentQuery, getQuery, getSearchModel, getType, getVariables, setCompiledObjectCollectionView, size
-
Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
clearCache, createObjectOrderings, createPaging, getAuditService, getAvailableData, getDefaultOptionsBuilder, getDefaultSortOrder, getDefaultSortParam, getDistinctRelatedOptions, getDistinctRelatedOptionsBuilder, getModelInteractionService, getModelService, getOperationOptionsBuilder, getOperationOptionsBuilder, getPageBase, getPageStorage, getPrismContext, getRelationRegistry, getSchemaService, getTaskManager, isDistinct, isOrderingDisabled, 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.gui.api.component.data.provider.ISelectableDataProvider
setQuery
-
-
-
-
Method Detail
-
checkOrderingSettings
protected boolean checkOrderingSettings()
- Overrides:
checkOrderingSettings
in classBaseSortableDataProvider<SelectableBean<C extends Containerable>>
-
searchObjects
protected List<C> searchObjects(Class<C> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommonException
- Specified by:
searchObjects
in classSelectableBeanDataProvider<C extends Containerable>
- Throws:
CommonException
-
countObjects
protected Integer countObjects(Class<C> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommonException
- Specified by:
countObjects
in classSelectableBeanDataProvider<C extends Containerable>
- 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>>
-
match
protected boolean match(C selectedValue, C foundValue)
- Specified by:
match
in classSelectableBeanDataProvider<C extends Containerable>
-
-