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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
BaseSortableDataProvider.CachedSize
-
Constructor Summary
ConstructorDescriptionSelectableBeanDataProvider
(org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Search<T>> search, Set<T> selected, boolean useDefaultSortingField) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected abstract Integer
countObjects
(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result) createDataObjectWrapper
(T obj) protected final Collection<SelectorOptions<GetOperationOptions>>
protected Iterator<SelectableBean<T>>
internalIterator
(long offset, long pageSize) protected int
boolean
boolean
isExport()
boolean
protected abstract boolean
protected GetOperationOptionsBuilder
postProcessOptions
(GetOperationOptionsBuilder optionsBuilder) protected void
searchObjects
(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult result) void
setDefaultCountIfNull
(int defaultCountIfNull) void
setEmptyListOnNullQuery
(boolean emptyListOnNullQuery) void
setExport
(boolean export) void
setForPreview
(boolean forPreview) void
setOptions
(Collection<SelectorOptions<GetOperationOptions>> options) Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSearchDataProvider
addQueryVariables, detach, getCompiledObjectCollectionView, getCustomizeContentQuery, getQuery, getSearchModel, getType, getVariables, setCompiledObjectCollectionView, setupUserFriendlyMessage, 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, getPrismContext, getRelationRegistry, getSchemaService, getTaskManager, isDistinct, isOrderingDisabled, isSizeAvailableModel, isUseCache, iterator, model, 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
canCountBeforeExport, setQuery
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator
getSortState
-
Constructor Details
-
SelectableBeanDataProvider
-
-
Method Details
-
getSelected
-
clearSelectedObjects
public void clearSelectedObjects() -
internalIterator
- Specified by:
internalIterator
in classBaseSortableDataProvider<SelectableBean<T extends Serializable>>
-
postProcessOptions
-
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
-
match
-
preprocessSelectedDataInternal
protected void preprocessSelectedDataInternal() -
getSearchOptions
-
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
-
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)
-