Class RoleAnalysisTableCellFillResolver
java.lang.Object
com.evolveum.midpoint.gui.impl.page.admin.role.mining.utils.table.RoleAnalysisTableCellFillResolver
Utility class for resolving cell colors and status in the context of role analysis tables.
This class provides utility methods for resolving cell colors, updating mining status, and initializing detection patterns for user-based and role-based role analysis tables.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> voidadditionalCell(@NotNull String componentId, @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, String color, Set<String> duplicatedElements) protected static <T> voidadditionalDuplicateCell(@NotNull String componentId, @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, Set<String> duplicatedElements) protected static <T> voiddisabledCell(@NotNull String componentId, @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem) protected static <T> voidemptyCell(@NotNull String componentId, @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem) generateObjectColors(List<String> containerIds) protected static Stringprotected static Stringprotected static <T> voidnegativeDisabledCell(@NotNull String componentId, @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem) protected static <T> voidpositiveDisabledCell(@NotNull String componentId, @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem) protected static <T> voidreducedCell(@NotNull String componentId, @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, String color, Set<String> duplicatedElements) protected static <T> voidreducedDuplicateCell(@NotNull String componentId, @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, Set<String> duplicatedElements) static voidrefreshCells(@NotNull RoleAnalysisProcessModeType processMode, @NotNull List<MiningUserTypeChunk> users, @NotNull List<MiningRoleTypeChunk> roles, double minFrequency, double maxFrequency) protected static <T> voidrelationCell(@NotNull String componentId, @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem) static <T extends MiningBaseTypeChunk>
booleanresolveCellTypeRoleTable(@NotNull String componentId, org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<MiningUserTypeChunk>> cellItem, T rowModel, T colModel, @NotNull org.apache.wicket.model.LoadableDetachableModel<Map<String, String>> colorLoadableMap) static <B extends MiningBaseTypeChunk,A extends MiningBaseTypeChunk>
RoleAnalysisTableCellFillResolver.StatusresolveCellTypeUserTable(@NotNull String componentId, org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<A>> cellItem, A rowModel, B colModel, @NotNull org.apache.wicket.model.IModel<Map<String, String>> colorLoadableMap) Resolve the cell color for role analysis table.static <T extends MiningBaseTypeChunk>
voidupdateFrequencyBased(@NotNull org.apache.wicket.model.IModel<T> rowModel, double minFrequency, double maxFrequency, boolean isOutlier) Update the mining DISABLE status for role-based analysis.
-
Constructor Details
-
RoleAnalysisTableCellFillResolver
public RoleAnalysisTableCellFillResolver()
-
-
Method Details
-
updateFrequencyBased
public static <T extends MiningBaseTypeChunk> void updateFrequencyBased(@NotNull @NotNull org.apache.wicket.model.IModel<T> rowModel, double minFrequency, double maxFrequency, boolean isOutlier) Update the mining DISABLE status for role-based analysis.- Parameters:
rowModel- The model of the row to update.minFrequency- The minimum frequency threshold.maxFrequency- The maximum frequency threshold.
-
resolveCellTypeUserTable
public static <B extends MiningBaseTypeChunk,A extends MiningBaseTypeChunk> RoleAnalysisTableCellFillResolver.Status resolveCellTypeUserTable(@NotNull @NotNull String componentId, org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<A>> cellItem, @NotNull A rowModel, @NotNull B colModel, @NotNull @NotNull org.apache.wicket.model.IModel<Map<String, String>> colorLoadableMap) Resolve the cell color for role analysis table.- Parameters:
rowModel- The row model (properties to compare).colModel- The column model (members to compare).
-
resolveCellTypeRoleTable
public static <T extends MiningBaseTypeChunk> boolean resolveCellTypeRoleTable(@NotNull @NotNull String componentId, org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<MiningUserTypeChunk>> cellItem, @NotNull T rowModel, @NotNull T colModel, @NotNull @NotNull org.apache.wicket.model.LoadableDetachableModel<Map<String, String>> colorLoadableMap) -
refreshCells
public static void refreshCells(@NotNull @NotNull RoleAnalysisProcessModeType processMode, @NotNull @NotNull List<MiningUserTypeChunk> users, @NotNull @NotNull List<MiningRoleTypeChunk> roles, double minFrequency, double maxFrequency) -
generateObjectColors
-
emptyCell
protected static <T> void emptyCell(@NotNull @NotNull String componentId, @NotNull @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem) -
disabledCell
protected static <T> void disabledCell(@NotNull @NotNull String componentId, @NotNull @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem) -
negativeDisabledCell
protected static <T> void negativeDisabledCell(@NotNull @NotNull String componentId, @NotNull @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem) -
positiveDisabledCell
protected static <T> void positiveDisabledCell(@NotNull @NotNull String componentId, @NotNull @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem) -
relationCell
protected static <T> void relationCell(@NotNull @NotNull String componentId, @NotNull @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem) -
reducedDuplicateCell
-
reducedCell
-
additionalDuplicateCell
-
additionalCell
-
getCssIconClass
-
getCssIconColorClass
-