Class DefaultPatternResolver

java.lang.Object
com.evolveum.midpoint.model.impl.mining.algorithm.detection.DefaultPatternResolver

public class DefaultPatternResolver extends Object

The DefaultPatternResolver class is responsible for detecting and resolving patterns within a role analysis session. It provides methods to load and resolve patterns based on the configured detection options, session details, and cluster statistics.

This class is a crucial component of the role analysis process, helping identify patterns within the analyzed data and facilitating decision-making for role and user assignments.

  • Constructor Details

    • DefaultPatternResolver

      public DefaultPatternResolver(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull RoleAnalysisProcessModeType roleAnalysisProcessModeType)
      Constructs a DefaultPatternResolver for a specific role analysis process mode.
      Parameters:
      roleAnalysisService - The role analysis service for performing operations.
      roleAnalysisProcessModeType - The mode specifying whether the process is role-based or user-based.
  • Method Details

    • loadPattern

      public List<RoleAnalysisDetectionPatternType> loadPattern(@NotNull @NotNull RoleAnalysisSessionType session, @NotNull @NotNull ClusterStatistic clusterStatistic, @NotNull @NotNull RoleAnalysisClusterType clusterType, @NotNull @NotNull OperationResult result, @NotNull @NotNull Task task)
      Loads and resolves detection patterns based on the session details, cluster statistics, and detection options.
      Parameters:
      session - The role analysis session.
      clusterStatistic - The cluster statistics for a specific cluster.
      clusterType - The cluster type to resolve patterns for.
      result - The operation result for tracking the operation status.
      task - The task associated with the operation.
      Returns:
      A list of resolved RoleAnalysisDetectionPatternType objects representing detection patterns.
    • loadTopPatterns

      public static List<DetectedPattern> loadTopPatterns(@NotNull @NotNull List<DetectedPattern> detectedPatterns)
      Loads the top detection patterns from a list of detected patterns based on their cluster metric values.
      Parameters:
      detectedPatterns - The list of detected patterns.
      Returns:
      A list of the top detected patterns.