Class BasePrepareAction
java.lang.Object
com.evolveum.midpoint.model.impl.mining.chunk.BasePrepareAction
- All Implemented Interfaces:
MiningStructure
- Direct Known Subclasses:
CompressedMiningStructure,ExpandedMiningStructure
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull MiningOperationChunkexecuteAction(@NotNull RoleAnalysisService roleAnalysisService, @NotNull RoleAnalysisClusterType cluster, boolean fullProcess, @NotNull RoleAnalysisProcessModeType mode, @NotNull RoleAnalysisProgressIncrement handler, @NotNull Task task, @NotNull OperationResult result) Executes the action for preparing the mining structure based on the specified cluster and mode.protected voidloadPartialUserChunk(@NotNull RoleAnalysisService roleAnalysisService, @NotNull OperationResult result, @NotNull RoleAnalysisProgressIncrement handler, @NotNull Task task, @NotNull List<ObjectReferenceType> members, @NotNull Map<String, PrismObject<UserType>> userExistCache, @NotNull Set<String> membersOidSet, @NotNull Map<String, PrismObject<RoleType>> roleExistCache, @NotNull com.google.common.collect.ListMultimap<String, String> roleMap) protected voidloadRoleMap(@NotNull RoleAnalysisService roleAnalysisService, @NotNull List<ObjectReferenceType> members, @NotNull Map<String, PrismObject<RoleType>> roleExistCache, @NotNull Map<String, PrismObject<UserType>> userExistCache, @NotNull Set<String> membersOidSet, @NotNull com.google.common.collect.ListMultimap<List<String>, String> userChunk, @NotNull com.google.common.collect.ListMultimap<String, String> roleMap) protected voidloadUserChunk(@NotNull RoleAnalysisService roleAnalysisService, @NotNull List<ObjectReferenceType> members, @NotNull Map<String, PrismObject<UserType>> userExistCache, @NotNull Set<String> membersOidSet, @NotNull Map<String, PrismObject<RoleType>> roleExistCache, @NotNull com.google.common.collect.ListMultimap<String, String> roleMap, @NotNull com.google.common.collect.ListMultimap<List<String>, String> userChunk) prepareRoleChunkMap(int roleMapSize, @NotNull com.google.common.collect.ListMultimap<String, String> roleMap) protected voidresolveRoleTypeChunk(@NotNull RoleAnalysisService roleAnalysisService, @NotNull com.google.common.collect.ListMultimap<List<String>, String> chunkMap, double membersCount, @NotNull Set<String> membersOidSet, @NotNull Map<String, PrismObject<RoleType>> roleExistCache, @NotNull List<MiningRoleTypeChunk> miningRoleTypeChunks) protected voidresolveUserTypeChunk(@NotNull RoleAnalysisService roleAnalysisService, @NotNull Set<String> membersOidSet, int mapSize, @NotNull com.google.common.collect.ListMultimap<List<String>, String> propertiesChunk, @NotNull Map<String, PrismObject<UserType>> userExistCache, @NotNull List<MiningUserTypeChunk> miningUserTypeChunks) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.model.impl.mining.chunk.MiningStructure
preparePartialRoleBasedStructure, preparePartialUserBasedStructure, prepareRoleBasedStructure, prepareUserBasedStructure
-
Constructor Details
-
BasePrepareAction
public BasePrepareAction()
-
-
Method Details
-
executeAction
@NotNull protected @NotNull MiningOperationChunk executeAction(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull RoleAnalysisClusterType cluster, boolean fullProcess, @NotNull @NotNull RoleAnalysisProcessModeType mode, @NotNull @NotNull RoleAnalysisProgressIncrement handler, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) 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.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.- Returns:
- The MiningOperationChunk containing the prepared structure.
-
loadRoleMap
protected void loadRoleMap(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull List<ObjectReferenceType> members, @NotNull @NotNull Map<String, PrismObject<RoleType>> roleExistCache, @NotNull @NotNull Map<String, PrismObject<UserType>> userExistCache, @NotNull @NotNull Set<String> membersOidSet, @NotNull @NotNull com.google.common.collect.ListMultimap<List<String>, String> userChunk, @NotNull @NotNull com.google.common.collect.ListMultimap<String, String> roleMap) -
prepareRoleChunkMap
-
resolveRoleTypeChunk
protected void resolveRoleTypeChunk(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull com.google.common.collect.ListMultimap<List<String>, String> chunkMap, double membersCount, @NotNull @NotNull Set<String> membersOidSet, @NotNull @NotNull Map<String, PrismObject<RoleType>> roleExistCache, @NotNull @NotNull List<MiningRoleTypeChunk> miningRoleTypeChunks) -
resolveUserTypeChunk
protected void resolveUserTypeChunk(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull Set<String> membersOidSet, int mapSize, @NotNull @NotNull com.google.common.collect.ListMultimap<List<String>, String> propertiesChunk, @NotNull @NotNull Map<String, PrismObject<UserType>> userExistCache, @NotNull @NotNull List<MiningUserTypeChunk> miningUserTypeChunks) -
loadUserChunk
protected void loadUserChunk(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull List<ObjectReferenceType> members, @NotNull @NotNull Map<String, PrismObject<UserType>> userExistCache, @NotNull @NotNull Set<String> membersOidSet, @NotNull @NotNull Map<String, PrismObject<RoleType>> roleExistCache, @NotNull @NotNull com.google.common.collect.ListMultimap<String, String> roleMap, @NotNull @NotNull com.google.common.collect.ListMultimap<List<String>, String> userChunk) -
loadPartialUserChunk
protected void loadPartialUserChunk(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull OperationResult result, @NotNull @NotNull RoleAnalysisProgressIncrement handler, @NotNull @NotNull Task task, @NotNull @NotNull List<ObjectReferenceType> members, @NotNull @NotNull Map<String, PrismObject<UserType>> userExistCache, @NotNull @NotNull Set<String> membersOidSet, @NotNull @NotNull Map<String, PrismObject<RoleType>> roleExistCache, @NotNull @NotNull com.google.common.collect.ListMultimap<String, String> roleMap)
-