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.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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, @NotNull 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, @NotNull 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)
     
    protected static @NotNull String
     
    protected static @NotNull String
     
    protected static <T> void
    negativeDisabledCell(@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
    positiveDisabledCell(@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
    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)
     
    static void
    refreshCells(@NotNull RoleAnalysisProcessModeType processMode, @NotNull List<MiningUserTypeChunk> users, @NotNull List<MiningRoleTypeChunk> roles, double minFrequency, double maxFrequency)
     
    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)
     
    resolveCellTypeUserTable(@NotNull String componentId, @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<A>> cellItem, A rowModel, B colModel, boolean isOutlierMode, @NotNull org.apache.wicket.model.IModel<Map<String,String>> colorLoadableMap)
    Resolve the cell color for role analysis table.
    static <T extends MiningBaseTypeChunk>
    void
    updateFrequencyBased(@NotNull org.apache.wicket.model.IModel<T> rowModel, double minFrequency, double maxFrequency, boolean isOutlier)
    Update the mining DISABLE status for role-based analysis.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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, @NotNull @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<A>> cellItem, @NotNull A rowModel, @NotNull B colModel, boolean isOutlierMode, @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).
    • refreshCells

      public static void refreshCells(@NotNull @NotNull RoleAnalysisProcessModeType processMode, @NotNull @NotNull List<MiningUserTypeChunk> users, @NotNull @NotNull List<MiningRoleTypeChunk> roles, double minFrequency, double maxFrequency)
    • 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

      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, @NotNull @NotNull 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, @NotNull @NotNull Set<String> duplicatedElements)
    • getCssIconClass

      @NotNull protected static @NotNull String getCssIconClass()
    • getCssIconColorClass

      @NotNull protected static @NotNull String getCssIconColorClass()