Class MiningChunkUtils
java.lang.Object
com.evolveum.midpoint.model.impl.mining.chunk.MiningChunkUtils
Utility class for processing and managing mining chunks in role analysis.
This class provides various methods for handling role and user chunks, including:
- Resolving table pattern chunks based on detected patterns.
- Expanding chunks based on role and user patterns.
- Processing role and user chunk patterns.
- Including missing objects into chunks.
It interacts with the RoleAnalysisService to retrieve role and user data
and applies analysis modes such as RoleAnalysisChunkMode to determine how chunks should be processed.
The class also includes helper methods for chunk naming and handling object statuses.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static @NotNull StringgetRoleChunkName(int rolesCount) static @NotNull StringgetUserChunkName(int usersCount) static voidincludeMissingObjectIntoChunks(@NotNull RoleAnalysisService roleAnalysisService, String candidateRoleId, @NotNull List<String> detectedPatternUsers, @NotNull List<String> detectedPatternRoles, @NotNull List<MiningUserTypeChunk> users, @NotNull List<MiningRoleTypeChunk> roles, @NotNull Task task, @NotNull OperationResult result) protected static StringresolveSingleMemberChunkName(@Nullable PrismObject<? extends FocusType> focusObject, @Nullable DisplayValueOption option) static voidresolveTablePatternChunk(RoleAnalysisServiceImpl roleAnalysisService, RoleAnalysisProcessModeType processMode, MiningOperationChunk basicChunk, List<List<String>> detectedPatternsRoles, List<String> candidateRolesIds, List<List<String>> detectedPatternsUsers, @NotNull Task task, @NotNull OperationResult result)
-
Constructor Details
-
MiningChunkUtils
public MiningChunkUtils()
-
-
Method Details
-
resolveTablePatternChunk
public static void resolveTablePatternChunk(RoleAnalysisServiceImpl roleAnalysisService, RoleAnalysisProcessModeType processMode, MiningOperationChunk basicChunk, List<List<String>> detectedPatternsRoles, List<String> candidateRolesIds, List<List<String>> detectedPatternsUsers, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) -
includeMissingObjectIntoChunks
public static void includeMissingObjectIntoChunks(@NotNull @NotNull RoleAnalysisService roleAnalysisService, String candidateRoleId, @NotNull @NotNull List<String> detectedPatternUsers, @NotNull @NotNull List<String> detectedPatternRoles, @NotNull @NotNull List<MiningUserTypeChunk> users, @NotNull @NotNull List<MiningRoleTypeChunk> roles, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) -
getUserChunkName
-
getRoleChunkName
-
resolveSingleMemberChunkName
protected static String resolveSingleMemberChunkName(@Nullable @Nullable PrismObject<? extends FocusType> focusObject, @Nullable @Nullable DisplayValueOption option)
-