Class SelectableBeanReferenceDataProvider
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<ObjectReferenceType>
com.evolveum.midpoint.gui.impl.component.data.provider.SelectableBeanReferenceDataProvider
- All Implemented Interfaces:
ISelectableDataProvider<SelectableBean<ObjectReferenceType>>
,Serializable
,org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator<String>
,org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<SelectableBean<ObjectReferenceType>,
,String> org.apache.wicket.markup.repeater.data.IDataProvider<SelectableBean<ObjectReferenceType>>
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
public class SelectableBeanReferenceDataProvider
extends SelectableBeanDataProvider<ObjectReferenceType>
- Author:
- lazyman, semancik
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
BaseSortableDataProvider.CachedSize
-
Constructor Summary
ConstructorDescriptionSelectableBeanReferenceDataProvider
(org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Search<ObjectReferenceType>> search, Set<ObjectReferenceType> selected, boolean useDefaultSortingField) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected Integer
countObjects
(Class<ObjectReferenceType> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result) protected boolean
match
(ObjectReferenceType selectedValue, ObjectReferenceType foundValue) protected List<ObjectReferenceType>
searchObjects
(Class<ObjectReferenceType> 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, createDataObjectWrappers, getOptions, getSearchOptions, 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, setupUserFriendlyMessage, size
Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
addCachedSize, 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
setQuery
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator
getSortState
-
Constructor Details
-
SelectableBeanReferenceDataProvider
public SelectableBeanReferenceDataProvider(org.apache.wicket.Component component, @NotNull @NotNull org.apache.wicket.model.IModel<Search<ObjectReferenceType>> search, Set<ObjectReferenceType> selected, boolean useDefaultSortingField)
-
-
Method Details
-
checkOrderingSettings
protected boolean checkOrderingSettings()- Overrides:
checkOrderingSettings
in classBaseSortableDataProvider<SelectableBean<ObjectReferenceType>>
-
searchObjects
protected List<ObjectReferenceType> searchObjects(Class<ObjectReferenceType> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommonException - Specified by:
searchObjects
in classSelectableBeanDataProvider<ObjectReferenceType>
- Throws:
CommonException
-
createDataObjectWrapper
- Overrides:
createDataObjectWrapper
in classSelectableBeanDataProvider<ObjectReferenceType>
-
countObjects
protected Integer countObjects(Class<ObjectReferenceType> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommonException - Specified by:
countObjects
in classSelectableBeanDataProvider<ObjectReferenceType>
- Throws:
CommonException
-
match
- Specified by:
match
in classSelectableBeanDataProvider<ObjectReferenceType>
-