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 TypeMethodDescriptionstatic void
initRoleBasedDetectionPattern
(List<MiningUserTypeChunk> users, List<MiningRoleTypeChunk> roles, DetectedPattern detectedPattern, double minFrequency, double maxFrequency) Initialize detection patterns for role-based analysis table.static void
initUserBasedDetectionPattern
(List<MiningUserTypeChunk> users, List<MiningRoleTypeChunk> roles, DetectedPattern detectedPattern, double minFrequency, double maxFrequency) Initialize detection patterns for user-based analysis table.static <T extends MiningBaseTypeChunk>
StringresolveCellColor
(T rowModel, T colModel) Resolve the cell color for role analysis table.static <T> void
updateCellMiningStatus
(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, String componentId, String cellColor) Update cell mining status (color).static <T extends MiningBaseTypeChunk>
voidupdateFrequencyBased
(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(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.
-
resolveCellColor
Resolve the cell color for role analysis table.- Parameters:
rowModel
- The row model (properties to compare).colModel
- The column model (members to compare).- Returns:
- The CSS class representing the cell color.
-
initUserBasedDetectionPattern
public static void initUserBasedDetectionPattern(List<MiningUserTypeChunk> users, List<MiningRoleTypeChunk> roles, DetectedPattern detectedPattern, double minFrequency, double maxFrequency) Initialize detection patterns for user-based analysis table.- Parameters:
users
- The list of user models.roles
- The list of role models.detectedPattern
- The detected pattern.minFrequency
- The minimum frequency threshold.maxFrequency
- The maximum frequency threshold.
-
initRoleBasedDetectionPattern
public static void initRoleBasedDetectionPattern(List<MiningUserTypeChunk> users, List<MiningRoleTypeChunk> roles, DetectedPattern detectedPattern, double minFrequency, double maxFrequency) Initialize detection patterns for role-based analysis table.- Parameters:
users
- The list of user models.roles
- The list of role models.detectedPattern
- The detected pattern.minFrequency
- The minimum frequency threshold.maxFrequency
- The maximum frequency threshold.
-
updateCellMiningStatus
public static <T> void updateCellMiningStatus(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, String componentId, String cellColor) Update cell mining status (color).- Type Parameters:
T
- The cell item type.- Parameters:
cellItem
- The cell item.componentId
- The component ID.cellColor
- The CSS class representing the cell color.
-