Class RoleAnalysisTableCellFillResolver

java.lang.Object
com.evolveum.midpoint.gui.impl.page.admin.role.mining.utils.table.RoleAnalysisTableCellFillResolver

public class RoleAnalysisTableCellFillResolver extends Object
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 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

      @NotNull public static @NotNull Map<String,String> generateObjectColors(List<String> containerIds)
    • 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

      protected static <T> void reducedDuplicateCell(@NotNull @NotNull String componentId, @NotNull @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, Set<String> duplicatedElements)
    • reducedCell

      protected static <T> void reducedCell(@NotNull @NotNull String componentId, @NotNull @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, String color, Set<String> duplicatedElements)
    • additionalDuplicateCell

      protected static <T> void additionalDuplicateCell(@NotNull @NotNull String componentId, @NotNull @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, Set<String> duplicatedElements)
    • additionalCell

      protected static <T> void additionalCell(@NotNull @NotNull String componentId, @NotNull @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, String color, Set<String> duplicatedElements)
    • getCssIconClass

      protected static String getCssIconClass()
    • getCssIconColorClass

      protected static String getCssIconColorClass()