Class BasePrepareAction
java.lang.Object
com.evolveum.midpoint.model.impl.mining.chunk.BasePrepareAction
- All Implemented Interfaces:
MiningStructure
- Direct Known Subclasses:
CompressedMiningStructure
,ExpandedMiningStructure
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull MiningOperationChunk
executeAction
(@NotNull RoleAnalysisService roleAnalysisService, @NotNull RoleAnalysisClusterType cluster, @Nullable SearchFilterType userSearchFilter, @Nullable SearchFilterType roleSearchFilter, @Nullable SearchFilterType assignmentSearchFilter, boolean fullProcess, @NotNull RoleAnalysisProcessModeType mode, @NotNull RoleAnalysisProgressIncrement handler, @NotNull Task task, @NotNull OperationResult result, @Nullable DisplayValueOption option) Executes the action for preparing the mining structure based on the specified cluster and mode.Generates aRoleAnalysisCacheOption
instance containing cache-specific properties used for managing the expanded user-permission table.protected void
resolveRoleTypeChunkCompress
(@NotNull RoleAnalysisService roleAnalysisService, @NotNull com.google.common.collect.ListMultimap<List<String>, String> compressedUsers, double allUsersInMiningStructureSize, @NotNull Map<String, PrismObject<RoleType>> roleExistCache, @NotNull List<MiningRoleTypeChunk> miningRoleTypeChunks) protected void
resolveRoleTypeChunkExpanded
(@NotNull RoleAnalysisService roleAnalysisService, @NotNull com.google.common.collect.ListMultimap<String, String> expandRolesMap, double allUsersInMiningStructureSize, @NotNull Map<String, PrismObject<RoleType>> roleExistCache, @NotNull List<MiningRoleTypeChunk> miningRoleTypeChunks, @Nullable DisplayValueOption option) protected void
resolveUserTypeChunkCompress
(@NotNull RoleAnalysisService roleAnalysisService, @NotNull com.google.common.collect.ListMultimap<List<String>, String> compressedUsers, int allRolesInMiningStructureSize, @NotNull Map<String, PrismObject<UserType>> userExistCache, @NotNull List<MiningUserTypeChunk> miningUserTypeChunks) protected void
resolveUserTypeChunkExpand
(@NotNull RoleAnalysisService roleAnalysisService, @NotNull com.google.common.collect.ListMultimap<String, String> expandedUsersMap, int allRolesInMiningStructureSize, @NotNull Map<String, PrismObject<UserType>> userExistCache, @NotNull List<MiningUserTypeChunk> miningUserTypeChunks, @Nullable DisplayValueOption option) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.model.impl.mining.chunk.MiningStructure
preparePartialRoleBasedStructure, preparePartialUserBasedStructure, prepareRoleBasedStructure, prepareUserBasedStructure
-
Constructor Details
-
BasePrepareAction
public BasePrepareAction()
-
-
Method Details
-
getUserCacheOption
-
getRoleCacheOption
-
generateUserCacheOption
-
generateRoleCacheOption
Generates aRoleAnalysisCacheOption
instance containing cache-specific properties used for managing the expanded user-permission table. This method processes the currentoption
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)
-