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, 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 void
loadPartialUserChunk
(@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 void
loadRoleMap
(@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 void
loadUserChunk
(@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 void
resolveRoleTypeChunk
(@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 void
resolveUserTypeChunk
(@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, wait
Methods 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)
-