Class SelectableBeanDataProvider<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>
-
- com.evolveum.midpoint.gui.impl.component.data.provider.BaseSearchDataProvider<T,SelectableBean<T>>
-
- com.evolveum.midpoint.gui.impl.component.data.provider.SelectableBeanDataProvider<T>
-
- All Implemented Interfaces:
ISelectableDataProvider<SelectableBean<T>>
,Serializable
,org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator<String>
,org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<SelectableBean<T>,String>
,org.apache.wicket.markup.repeater.data.IDataProvider<SelectableBean<T>>
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
SelectableBeanContainerDataProvider
,SelectableBeanObjectDataProvider
,SelectableBeanReferenceDataProvider
public abstract class SelectableBeanDataProvider<T extends Serializable> extends BaseSearchDataProvider<T,SelectableBean<T>> implements ISelectableDataProvider<SelectableBean<T>>
- 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 SelectableBeanDataProvider(org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Search<T>> search, Set<T> selected, boolean useDefaultSortingField)
-
Method Summary
-
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
addCachedSize, checkOrderingSettings, clearCache, createObjectOrderings, createPaging, getAuditService, getAvailableData, getCachedSize, 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
-
clearSelectedObjects
public void clearSelectedObjects()
-
internalIterator
public Iterator<SelectableBean<T>> internalIterator(long offset, long pageSize)
- Specified by:
internalIterator
in classBaseSortableDataProvider<SelectableBean<T extends Serializable>>
-
postProcessOptions
protected GetOperationOptionsBuilder postProcessOptions(GetOperationOptionsBuilder optionsBuilder)
-
handleNotSuccessOrHandledErrorInIterator
protected Iterator<SelectableBean<T>> handleNotSuccessOrHandledErrorInIterator(OperationResult result)
-
searchObjects
protected abstract List<T> searchObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommonException
- Throws:
CommonException
-
createDataObjectWrapper
public SelectableBean<T> createDataObjectWrapper(T obj)
-
preprocessSelectedDataInternal
protected void preprocessSelectedDataInternal()
-
getOptions
public Collection<SelectorOptions<GetOperationOptions>> getOptions()
-
internalSize
protected int internalSize()
- Specified by:
internalSize
in classBaseSortableDataProvider<SelectableBean<T extends Serializable>>
-
countObjects
protected abstract Integer countObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommonException
- Throws:
CommonException
-
isUseObjectCounting
public boolean isUseObjectCounting()
-
setOptions
public void setOptions(Collection<SelectorOptions<GetOperationOptions>> options)
-
isEmptyListOnNullQuery
public boolean isEmptyListOnNullQuery()
-
setEmptyListOnNullQuery
public void setEmptyListOnNullQuery(boolean emptyListOnNullQuery)
-
setDefaultCountIfNull
public void setDefaultCountIfNull(int defaultCountIfNull)
-
setForPreview
public void setForPreview(boolean forPreview)
-
isExport
public boolean isExport()
-
setExport
public void setExport(boolean export)
-
-