Class ClusterSelectableBeanObjectDataProvider
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<RoleAnalysisClusterType>
com.evolveum.midpoint.gui.impl.page.admin.role.mining.page.panel.session.provider.ClusterSelectableBeanObjectDataProvider
- All Implemented Interfaces:
ISelectableDataProvider<SelectableBean<RoleAnalysisClusterType>>,Serializable,org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator<String>,org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<SelectableBean<RoleAnalysisClusterType>,,String> org.apache.wicket.markup.repeater.data.IDataProvider<SelectableBean<RoleAnalysisClusterType>>,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.IClusterable
public class ClusterSelectableBeanObjectDataProvider
extends SelectableBeanObjectDataProvider<RoleAnalysisClusterType>
A temporary implementation of a data provider for managing and sorting role analysis cluster objects in the session.
This class is part of the GUI layer and is specifically designed for the role analysis feature. It allows efficient handling and presentation of session-based cluster data in the absence of full database support. The provider handles sorting, filtering, and pagination logic for clusters based on different properties such as:
- Cluster name
- Detected reduction metrics
- Outlier count
Note: This is a temporary class and will be replaced when database support and a proper design for logic implementation are completed.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
BaseSortableDataProvider.CachedSize -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClusterSelectableBeanObjectDataProvider(org.apache.wicket.Component component, org.apache.wicket.model.IModel<Search<RoleAnalysisClusterType>> search, Set<RoleAnalysisClusterType> selected, RoleAnalysisClusterCategory category, LoadableModel<com.google.common.collect.ListMultimap<String, String>> clusterMappedClusterOutliers, RoleAnalysisSessionType sessionObject) -
Method Summary
Modifier and TypeMethodDescriptionprotected IntegercountObjects(Class<RoleAnalysisClusterType> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result) createPaging(long offset, long pageSize) protected List<RoleAnalysisClusterType>searchObjects(Class type, ObjectQuery query, Collection collection, com.evolveum.midpoint.task.api.Task task, OperationResult result) Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.SelectableBeanObjectDataProvider
createDataObjectWrapper, detach, isMemberPanel, match, setIsMemberPanel, setTaskConsumerMethods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.SelectableBeanDataProvider
clearSelectedObjects, createDataObjectWrapperForError, createDataObjectWrappers, getOptions, getSearchOptions, getSelected, internalIterator, internalSize, isEmptyListOnNullQuery, isExport, isUseObjectCounting, postProcessOptions, preprocessSelectedDataInternal, setDefaultCountIfNull, setEmptyListOnNullQuery, setExport, setForPreview, setOptionsMethods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSearchDataProvider
addQueryVariables, getCompiledObjectCollectionView, getCustomizeContentQuery, getQuery, getSearchModel, getType, getVariables, setCompiledObjectCollectionView, setupUserFriendlyMessage, sizeMethods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
addCachedSize, checkOrderingSettings, clearCache, createObjectOrderings, 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
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
-
Field Details
-
SORT_NAME_PROPERTY
-
SORT_REDUCTION_PROPERTY
-
SORT_OUTLIER_COUNT_PROPERTY
- See Also:
-
-
Constructor Details
-
ClusterSelectableBeanObjectDataProvider
public ClusterSelectableBeanObjectDataProvider(org.apache.wicket.Component component, org.apache.wicket.model.IModel<Search<RoleAnalysisClusterType>> search, Set<RoleAnalysisClusterType> selected, RoleAnalysisClusterCategory category, LoadableModel<com.google.common.collect.ListMultimap<String, String>> clusterMappedClusterOutliers, RoleAnalysisSessionType sessionObject)
-
-
Method Details
-
searchObjects
protected List<RoleAnalysisClusterType> searchObjects(Class type, ObjectQuery query, Collection collection, com.evolveum.midpoint.task.api.Task task, OperationResult result) - Overrides:
searchObjectsin classSelectableBeanObjectDataProvider<RoleAnalysisClusterType>
-
countObjects
protected Integer countObjects(Class<RoleAnalysisClusterType> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> currentOptions, com.evolveum.midpoint.task.api.Task task, OperationResult result) - Overrides:
countObjectsin classSelectableBeanObjectDataProvider<RoleAnalysisClusterType>
-
createPaging
- Overrides:
createPagingin classSelectableBeanObjectDataProvider<RoleAnalysisClusterType>
-