Class SelectableBeanObjectDataProvider<O extends ObjectType>
- 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<O>
-
- com.evolveum.midpoint.gui.impl.component.data.provider.SelectableBeanObjectDataProvider<O>
-
- All Implemented Interfaces:
ISelectableDataProvider<SelectableBean<O>>
,Serializable
,org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator<String>
,org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<SelectableBean<O>,String>
,org.apache.wicket.markup.repeater.data.IDataProvider<SelectableBean<O>>
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
public class SelectableBeanObjectDataProvider<O extends ObjectType> extends SelectableBeanDataProvider<O>
- 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 SelectableBeanObjectDataProvider(org.apache.wicket.Component component, Set<O> selected)
SelectableBeanObjectDataProvider(org.apache.wicket.Component component, org.apache.wicket.model.IModel<Search<O>> search, Set<O> selected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Integer
countObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result)
SelectableBean<O>
createDataObjectWrapper(O obj)
void
detach()
protected boolean
isMemberPanel()
protected boolean
match(O selectedValue, O foundValue)
protected GetOperationOptionsBuilder
postProcessOptions(GetOperationOptionsBuilder optionsBuilder)
protected List<O>
searchObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult result)
void
setIsMemberPanel(boolean isMemberPanel)
void
setTaskConsumer(Consumer<com.evolveum.midpoint.task.api.Task> taskConsumer)
-
Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.SelectableBeanDataProvider
clearSelectedObjects, getOptions, getSelected, handleNotSuccessOrHandledErrorInIterator, internalIterator, internalSize, isEmptyListOnNullQuery, isExport, isUseObjectCounting, preprocessSelectedDataInternal, setDefaultCountIfNull, setEmptyListOnNullQuery, setExport, setForPreview, setOptions
-
Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSearchDataProvider
addQueryVariables, 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
iterator, model, size
-
Methods inherited from interface com.evolveum.midpoint.gui.api.component.data.provider.ISelectableDataProvider
setQuery
-
-
-
-
Method Detail
-
createDataObjectWrapper
public SelectableBean<O> createDataObjectWrapper(O obj)
- Overrides:
createDataObjectWrapper
in classSelectableBeanDataProvider<O extends ObjectType>
-
match
protected boolean match(O selectedValue, O foundValue)
- Specified by:
match
in classSelectableBeanDataProvider<O extends ObjectType>
-
countObjects
protected Integer countObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommonException
- Specified by:
countObjects
in classSelectableBeanDataProvider<O extends ObjectType>
- Throws:
CommonException
-
isMemberPanel
protected boolean isMemberPanel()
-
setIsMemberPanel
public void setIsMemberPanel(boolean isMemberPanel)
-
searchObjects
protected List<O> searchObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommonException
- Specified by:
searchObjects
in classSelectableBeanDataProvider<O extends ObjectType>
- Throws:
CommonException
-
detach
public void detach()
- Specified by:
detach
in interfaceorg.apache.wicket.markup.repeater.data.IDataProvider<O extends ObjectType>
- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
- Overrides:
detach
in classBaseSearchDataProvider<O extends ObjectType,SelectableBean<O extends ObjectType>>
-
postProcessOptions
protected GetOperationOptionsBuilder postProcessOptions(GetOperationOptionsBuilder optionsBuilder)
- Overrides:
postProcessOptions
in classSelectableBeanDataProvider<O extends ObjectType>
-
setTaskConsumer
public void setTaskConsumer(Consumer<com.evolveum.midpoint.task.api.Task> taskConsumer)
-
-