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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> void
additionalCell
(@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> void
additionalDuplicateCell
(@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> void
disabledCell
(@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> void
emptyCell
(@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 String
protected static String
static void
initRoleBasedDetectionPattern
(@NotNull PageBase pageBase, @NotNull List<MiningUserTypeChunk> users, @NotNull List<MiningRoleTypeChunk> roles, @NotNull List<DetectedPattern> detectedPatterns, double minFrequency, double maxFrequency, @NotNull com.evolveum.midpoint.task.api.Task task, @NotNull OperationResult result) Initialize detection patterns for role-based analysis table.static void
initUserBasedDetectionPattern
(@NotNull PageBase pageBase, @NotNull List<MiningUserTypeChunk> users, @NotNull List<MiningRoleTypeChunk> roles, @NotNull List<DetectedPattern> detectedPatterns, double minFrequency, double maxFrequency, @NotNull com.evolveum.midpoint.task.api.Task task, @NotNull OperationResult result) Initialize detection patterns for user-based analysis table.protected static <T> void
reducedCell
(@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> void
reducedDuplicateCell
(@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> void
relationCell
(@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, Map<String, String> colorMap) static <T extends MiningBaseTypeChunk>
booleanresolveCellTypeUserTable
(@NotNull String componentId, org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<MiningRoleTypeChunk>> cellItem, MiningRoleTypeChunk rowModel, MiningUserTypeChunk colModel, org.apache.wicket.model.LoadableDetachableModel<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) 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) 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 <T extends MiningBaseTypeChunk> boolean resolveCellTypeUserTable(@NotNull @NotNull String componentId, org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<MiningRoleTypeChunk>> cellItem, MiningRoleTypeChunk rowModel, MiningUserTypeChunk colModel, org.apache.wicket.model.LoadableDetachableModel<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, Map<String, String> colorMap) -
initUserBasedDetectionPattern
public static void initUserBasedDetectionPattern(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull List<MiningUserTypeChunk> users, @NotNull @NotNull List<MiningRoleTypeChunk> roles, @NotNull @NotNull List<DetectedPattern> detectedPatterns, double minFrequency, double maxFrequency, @NotNull @NotNull com.evolveum.midpoint.task.api.Task task, @NotNull @NotNull OperationResult result) Initialize detection patterns for user-based analysis table.- Parameters:
users
- The list of user models.roles
- The list of role models.detectedPatterns
- The detected pattern.minFrequency
- The minimum frequency threshold.maxFrequency
- The maximum frequency threshold.
-
initRoleBasedDetectionPattern
public static void initRoleBasedDetectionPattern(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull List<MiningUserTypeChunk> users, @NotNull @NotNull List<MiningRoleTypeChunk> roles, @NotNull @NotNull List<DetectedPattern> detectedPatterns, double minFrequency, double maxFrequency, @NotNull @NotNull com.evolveum.midpoint.task.api.Task task, @NotNull @NotNull OperationResult result) Initialize detection patterns for role-based analysis table.- Parameters:
users
- The list of user models.roles
- The list of role models.detectedPatterns
- The detected pattern.minFrequency
- The minimum frequency threshold.maxFrequency
- The maximum frequency threshold.
-
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) -
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
-