Class MultivalueContainerListDataProvider<C extends Containerable>
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<C,PrismContainerValueWrapper<C>>
com.evolveum.midpoint.gui.impl.component.data.provider.MultivalueContainerListDataProvider<C>
- All Implemented Interfaces:
ISelectableDataProvider<PrismContainerValueWrapper<C>>,IterativeExportSupport<PrismContainerValueWrapper<C>>,Serializable,org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator<String>,org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<PrismContainerValueWrapper<C>,,String> org.apache.wicket.markup.repeater.data.IDataProvider<PrismContainerValueWrapper<C>>,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
AssignmentListProvider,ProjectionsListProvider,StatusAwareDataProvider
public class MultivalueContainerListDataProvider<C extends Containerable>
extends BaseSearchDataProvider<C,PrismContainerValueWrapper<C>>
implements ISelectableDataProvider<PrismContainerValueWrapper<C>>
- Author:
- katkav
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
BaseSortableDataProvider.CachedSize -
Constructor Summary
ConstructorsConstructorDescriptionMultivalueContainerListDataProvider(org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Search<C>> search, org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<C>>> model) MultivalueContainerListDataProvider(org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Search<C>> search, org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<C>>> model, boolean sortable) -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.apache.wicket.model.IModel<List<PrismContainerValueWrapper<C>>>getModel()protected <V extends Comparable<V>>
VgetPropertyValue(PrismContainerValueWrapper<C> o1, String propertyName) protected Iterator<PrismContainerValueWrapper<C>>Iterator<? extends PrismContainerValueWrapper<C>>internalIterator(long first, long count) protected intprotected booleanmatchItems(@NotNull PrismContainerValueWrapper<C> valueWrapper, @NotNull ObjectQuery query) Returns true if the given valueWrapper matches the given queryprotected voidpostProcessWrapper(PrismContainerValueWrapper<C> valueWrapper) protected List<PrismContainerValueWrapper<C>>protected <V extends Comparable<V>>
voidsort(List<PrismContainerValueWrapper<C>> list) Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSearchDataProvider
addQueryVariables, detach, exportIterative, getCompiledObjectCollectionView, getCustomizeContentQuery, getQuery, getSearchModel, getType, getVariables, setCompiledObjectCollectionView, setupUserFriendlyMessage, size, supportsIterativeExportMethods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
addCachedSize, checkOrderingSettings, 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, setQueryMethods inherited from class org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
getSort, getSortState, setSort, setSortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.wicket.markup.repeater.data.IDataProvider
detach, iterator, model, sizeMethods inherited from interface com.evolveum.midpoint.gui.api.component.data.provider.ISelectableDataProvider
setQueryMethods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator
getSortState
-
Constructor Details
-
MultivalueContainerListDataProvider
public MultivalueContainerListDataProvider(org.apache.wicket.Component component, @NotNull @NotNull org.apache.wicket.model.IModel<Search<C>> search, org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<C>>> model) -
MultivalueContainerListDataProvider
public MultivalueContainerListDataProvider(org.apache.wicket.Component component, @NotNull @NotNull org.apache.wicket.model.IModel<Search<C>> search, org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<C>>> model, boolean sortable)
-
-
Method Details
-
internalIterator
- Specified by:
internalIteratorin classBaseSortableDataProvider<PrismContainerValueWrapper<C extends Containerable>>
-
handleNotSuccessOrHandledErrorInIterator
protected Iterator<PrismContainerValueWrapper<C>> handleNotSuccessOrHandledErrorInIterator(OperationResult result) -
postProcessWrapper
-
getPropertyValue
protected <V extends Comparable<V>> V getPropertyValue(PrismContainerValueWrapper<C> o1, String propertyName) -
sort
-
internalSize
protected int internalSize()- Specified by:
internalSizein classBaseSortableDataProvider<PrismContainerValueWrapper<C extends Containerable>>
-
searchThroughList
-
matchItems
protected boolean matchItems(@NotNull @NotNull PrismContainerValueWrapper<C> valueWrapper, @NotNull @NotNull ObjectQuery query) throws SchemaException Returns true if the given valueWrapper matches the given query- Throws:
SchemaException
-
clearCache
public void clearCache()- Overrides:
clearCachein classBaseSortableDataProvider<PrismContainerValueWrapper<C extends Containerable>>
-
getModel
-