Class RoleAnalysisUtils
java.lang.Object
com.evolveum.midpoint.model.impl.mining.utils.RoleAnalysisUtils
The `RoleAnalysisUtils` class contains utility methods used in the role analysis process.
It is used to update the role analysis operation status, submit the operation status, and remove redundant patterns.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull RoleAnalysisOperationStatus
buildOpExecution
(@NotNull String taskOid, OperationResultStatusType operationResultStatusType, String message, RoleAnalysisOperation operationType, XMLGregorianCalendar createTimestamp, @Nullable FocusType owner) static Double
removeRedundantPatterns
(@NotNull RoleAnalysisService roleAnalysisService, @NotNull Collection<RoleAnalysisDetectionPatternType> detectedPattern, Set<String> clusterUsersOidSet, Set<String> clusterRolesOidSet, com.google.common.collect.ListMultimap<String, String> map, List<ObjectReferenceType> resolvedPattern, @NotNull Task task, @NotNull OperationResult result) static void
submitClusterOperationStatus
(@NotNull ModelService modelService, @NotNull PrismObject<RoleAnalysisClusterType> cluster, @NotNull String taskOid, @NotNull RoleAnalysisOperation operationChannel, @NotNull FocusType initiator, Trace logger, @NotNull Task task, @NotNull OperationResult result) static void
submitSessionOperationStatus
(@NotNull ModelService modelService, @NotNull PrismObject<RoleAnalysisSessionType> cluster, @NotNull String taskOid, @NotNull FocusType initiator, @NotNull Trace logger, @NotNull Task task, @NotNull OperationResult result) static String
updateClusterStateMessage
(@NotNull TaskType taskObject) static @Nullable RoleAnalysisOperationStatus
updateRoleAnalysisOperationStatus
(@NotNull RepositoryService repositoryService, @NotNull RoleAnalysisOperationStatus status, boolean isSession, @NotNull Trace logger, @NotNull OperationResult result) static String
updateSessionStateMessage
(@NotNull TaskType taskType, TaskExecutionStateType executionState)
-
Constructor Details
-
RoleAnalysisUtils
public RoleAnalysisUtils()
-
-
Method Details
-
updateRoleAnalysisOperationStatus
@Nullable public static @Nullable RoleAnalysisOperationStatus updateRoleAnalysisOperationStatus(@NotNull @NotNull RepositoryService repositoryService, @NotNull @NotNull RoleAnalysisOperationStatus status, boolean isSession, @NotNull @NotNull Trace logger, @NotNull @NotNull OperationResult result) -
updateClusterStateMessage
-
updateSessionStateMessage
public static String updateSessionStateMessage(@NotNull @NotNull TaskType taskType, TaskExecutionStateType executionState) -
buildOpExecution
@NotNull public static @NotNull RoleAnalysisOperationStatus buildOpExecution(@NotNull @NotNull String taskOid, OperationResultStatusType operationResultStatusType, String message, RoleAnalysisOperation operationType, XMLGregorianCalendar createTimestamp, @Nullable @Nullable FocusType owner) -
submitClusterOperationStatus
public static void submitClusterOperationStatus(@NotNull @NotNull ModelService modelService, @NotNull @NotNull PrismObject<RoleAnalysisClusterType> cluster, @NotNull @NotNull String taskOid, @NotNull @NotNull RoleAnalysisOperation operationChannel, @NotNull @NotNull FocusType initiator, Trace logger, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) -
submitSessionOperationStatus
public static void submitSessionOperationStatus(@NotNull @NotNull ModelService modelService, @NotNull @NotNull PrismObject<RoleAnalysisSessionType> cluster, @NotNull @NotNull String taskOid, @NotNull @NotNull FocusType initiator, @NotNull @NotNull Trace logger, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) -
removeRedundantPatterns
public static Double removeRedundantPatterns(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull Collection<RoleAnalysisDetectionPatternType> detectedPattern, Set<String> clusterUsersOidSet, Set<String> clusterRolesOidSet, com.google.common.collect.ListMultimap<String, String> map, List<ObjectReferenceType> resolvedPattern, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result)
-