Class SelectableBeanObjectDataProvider<O extends ObjectType>
- 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<O>
-
- com.evolveum.midpoint.web.component.data.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 SelectableBeanContainerDataProvider<O>
- 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 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<? extends O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result)
SelectableBean<O>
createDataObjectWrapper(O obj)
List<SelectableBean<O>>
createDataObjectWrappers(Class<? extends O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult result)
void
detach()
protected boolean
isMemberPanel()
boolean
isOrderingDisabled()
protected boolean
isUseObjectCounting()
org.apache.wicket.model.IModel<SelectableBean<O>>
model(SelectableBean<O> object)
protected List<O>
searchObjects(Class<? extends O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult result)
void
setIsMemberPanel(boolean isMemberPanel)
-
Methods inherited from class com.evolveum.midpoint.web.component.data.SelectableBeanContainerDataProvider
addCachedSize, checkOrderingSettings, clearSelectedObjects, getCachedSize, getOptions, getSelected, handleNotSuccessOrHandledErrorInIterator, internalIterator, internalSize, isEmptyListOnNullQuery, isExport, setDefaultCountIfNull, setEmptyListOnNullQuery, setExport, setForPreview, setOptions
-
Methods inherited from class com.evolveum.midpoint.web.component.data.BaseSearchDataProvider
addQueryVariables, 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, 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, size
-
Methods inherited from interface com.evolveum.midpoint.web.component.data.ISelectableDataProvider
setQuery
-
-
-
-
Method Detail
-
createDataObjectWrappers
public List<SelectableBean<O>> createDataObjectWrappers(Class<? extends O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException
-
createDataObjectWrapper
public SelectableBean<O> createDataObjectWrapper(O obj)
- Overrides:
createDataObjectWrapper
in classSelectableBeanContainerDataProvider<O extends ObjectType>
-
countObjects
protected Integer countObjects(Class<? extends O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException
-
isOrderingDisabled
public boolean isOrderingDisabled()
- Overrides:
isOrderingDisabled
in classSelectableBeanContainerDataProvider<O extends ObjectType>
-
isUseObjectCounting
protected boolean isUseObjectCounting()
- Overrides:
isUseObjectCounting
in classSelectableBeanContainerDataProvider<O extends ObjectType>
-
model
public org.apache.wicket.model.IModel<SelectableBean<O>> model(SelectableBean<O> object)
- Specified by:
model
in interfaceorg.apache.wicket.markup.repeater.data.IDataProvider<O extends ObjectType>
- Overrides:
model
in classBaseSortableDataProvider<SelectableBean<O extends ObjectType>>
-
isMemberPanel
protected boolean isMemberPanel()
-
setIsMemberPanel
public void setIsMemberPanel(boolean isMemberPanel)
-
searchObjects
protected List<O> searchObjects(Class<? extends O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommonException
- Overrides:
searchObjects
in classSelectableBeanContainerDataProvider<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>>
-
-