Class BasePrepareAction

java.lang.Object
com.evolveum.midpoint.model.impl.mining.chunk.BasePrepareAction
All Implemented Interfaces:
MiningStructure
Direct Known Subclasses:
CompressedMiningStructure, ExpandedMiningStructure

public abstract class BasePrepareAction extends Object implements MiningStructure
  • Constructor Details

    • BasePrepareAction

      public BasePrepareAction()
  • Method Details

    • getUserCacheOption

      public RoleAnalysisCacheOption getUserCacheOption()
    • getRoleCacheOption

      public RoleAnalysisCacheOption getRoleCacheOption()
    • generateUserCacheOption

      public RoleAnalysisCacheOption generateUserCacheOption()
    • generateRoleCacheOption

      public RoleAnalysisCacheOption generateRoleCacheOption()
      Generates a RoleAnalysisCacheOption instance containing cache-specific properties used for managing the expanded user-permission table. This method processes the current option object to retrieve relevant attribute definitions that influence the display value for specific roles. This method is designed to handle an expanded structure, with the specific chunkName attribute selected.
    • executeAction

      @NotNull protected @NotNull MiningOperationChunk executeAction(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull RoleAnalysisClusterType cluster, @Nullable @Nullable SearchFilterType userSearchFilter, @Nullable @Nullable SearchFilterType roleSearchFilter, @Nullable @Nullable SearchFilterType assignmentSearchFilter, boolean fullProcess, @NotNull @NotNull RoleAnalysisProcessModeType mode, @NotNull @NotNull RoleAnalysisProgressIncrement handler, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result, @Nullable @Nullable DisplayValueOption option)
      Executes the action for preparing the mining structure based on the specified cluster and mode.
      Parameters:
      roleAnalysisService - The role analysis service for performing the operation.
      cluster - The role analysis cluster to process.
      userSearchFilter - The user search filter.
      roleSearchFilter - The role search filter.
      assignmentSearchFilter - The assignment search filter.
      fullProcess - Indicates whether a full process should be performed.
      mode - The role analysis process Mode.
      handler - The progress increment handler.
      task - The task associated with this operation.
      result - The operation result.
      option - Display options chunk preparation.
      Returns:
      The MiningOperationChunk containing the prepared structure.
    • resolveRoleTypeChunkCompress

      protected void resolveRoleTypeChunkCompress(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull com.google.common.collect.ListMultimap<List<String>,String> compressedUsers, double allUsersInMiningStructureSize, @NotNull @NotNull Map<String,PrismObject<RoleType>> roleExistCache, @NotNull @NotNull List<MiningRoleTypeChunk> miningRoleTypeChunks)
    • resolveRoleTypeChunkExpanded

      protected void resolveRoleTypeChunkExpanded(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull com.google.common.collect.ListMultimap<String,String> expandRolesMap, double allUsersInMiningStructureSize, @NotNull @NotNull Map<String,PrismObject<RoleType>> roleExistCache, @NotNull @NotNull List<MiningRoleTypeChunk> miningRoleTypeChunks, @Nullable @Nullable DisplayValueOption option)
    • resolveUserTypeChunkCompress

      protected void resolveUserTypeChunkCompress(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull com.google.common.collect.ListMultimap<List<String>,String> compressedUsers, int allRolesInMiningStructureSize, @NotNull @NotNull Map<String,PrismObject<UserType>> userExistCache, @NotNull @NotNull List<MiningUserTypeChunk> miningUserTypeChunks)
    • resolveUserTypeChunkExpand

      protected void resolveUserTypeChunkExpand(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull com.google.common.collect.ListMultimap<String,String> expandedUsersMap, int allRolesInMiningStructureSize, @NotNull @NotNull Map<String,PrismObject<UserType>> userExistCache, @NotNull @NotNull List<MiningUserTypeChunk> miningUserTypeChunks, @Nullable @Nullable DisplayValueOption option)