Class RoleAnalysisWebUtils
java.lang.Object
com.evolveum.midpoint.gui.impl.page.admin.role.mining.RoleAnalysisWebUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RoleAnalysisBasicProgressBarbuildDensityProgressPanel(@NotNull String componentId, @NotNull Double density, @NotNull String title) static @NotNull RoleAnalysisInlineProgressBarbuildSimpleDensityBasedProgressBar(String id, org.apache.wicket.model.IModel<String> value) static voidbusinessRoleMigrationPerform(@NotNull PageBase pageBase, @NotNull BusinessRoleApplicationDto businessRoleApplicationDto, @NotNull Collection<ObjectDeltaOperation<? extends ObjectType>> executedDeltas, @NotNull Task task, @NotNull OperationResult result, @NotNull org.apache.wicket.ajax.AjaxRequestTarget target) static @NotNull RoleAnalysisTabbedPanel<org.apache.wicket.extensions.markup.html.tabs.ITab>createRoleAnalysisTabPanel(@NotNull PageBase pageBase, @NotNull String componentId, @NotNull List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs) static ActivityDefinitionTypecreateRoleMigrationActivity(@NotNull List<BusinessRoleDto> patternDeltas, String roleOid) static @NotNull org.apache.wicket.model.Model<String>explainAnomaly(@NotNull RoleAnalysisService roleAnalysisService, @NotNull DetectedAnomalyResult anomalyResult, @NotNull Task task, @NotNull OperationResult result) Provides an explanation for the given anomaly result.static @NotNull org.apache.wicket.model.Model<String>explainAnomaly(List<OutlierExplanationResolver.ExplanationResult> explanations) static @NotNull org.apache.wicket.model.Model<String>explainOutlier(@NotNull RoleAnalysisService roleAnalysisService, @NotNull RoleAnalysisOutlierType outlierObject, boolean shortExplanation, @NotNull Task task, @NotNull OperationResult result) Provides an explanation for the given outlier object.static @NotNull org.apache.wicket.model.Model<String>explainPartition(@NotNull RoleAnalysisService roleAnalysisService, @NotNull RoleAnalysisOutlierPartitionType partition, boolean shortExplanation, @NotNull Task task, @NotNull OperationResult result) Provides an explanation for the given partition object.static StringgetRoleAssignmentCount(@NotNull RoleType role, @NotNull PageBase pageBase) static @NotNull StringgetRoleInducementsCount(@NotNull RoleType role) static doublegetTotalSystemPercentageReduction(int totalReduction, int totalAssignmentRoleToUser) static voidinitClusterDensityProgressPanel(@NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<SelectableBean<RoleAnalysisClusterType>>> cellItem, @NotNull String componentId, @NotNull Double density) static @NotNull RoleAnalysisTable<MiningUserTypeChunk,MiningRoleTypeChunk> loadRoleAnalysisTempTable(@NotNull String id, @NotNull PageBase pageBase, @Nullable List<DetectedAnomalyResult> detectedAnomalyResult, RoleAnalysisOutlierPartitionType partition, @NotNull RoleAnalysisOutlierType outlier, @NotNull RoleAnalysisClusterType cluster) static @NotNull RoleAnalysisTable<MiningUserTypeChunk,MiningRoleTypeChunk> loadRoleAnalysisTempTable(@NotNull String id, @NotNull PageBase pageBase, @Nullable List<DetectedAnomalyResult> detectedAnomalyResult, String uniqRoleOid, RoleAnalysisOutlierPartitionType partition, @NotNull RoleAnalysisOutlierType outlier, @NotNull RoleAnalysisClusterType cluster) static @NotNull org.apache.wicket.model.LoadableDetachableModel<PrismObjectWrapper<UserType>>loadUserWrapperForMarkAction(@NotNull String userOid, @NotNull PageBase pageBase, @NotNull OperationResult result) static voidnavigateToClusterOperationPanel(@NotNull PageBase pageBase, @Nullable BusinessRoleApplicationDto roleAnalysisPatternDeltas) static RoleAnalysisProcedureTyperesolveSessionProcedureType(@NotNull RoleAnalysisSessionType session) static @NotNull RoleAnalysisProcessModeTyperesolveSessionProcessMode(@NotNull RoleAnalysisSessionType session)
-
Field Details
-
TITLE_CSS
- See Also:
-
CLASS_CSS
- See Also:
-
STYLE_CSS
- See Also:
-
TEXT_MUTED
- See Also:
-
TEXT_TONED
- See Also:
-
TEXT_TRUNCATE
- See Also:
-
FONT_WEIGHT_BOLD
- See Also:
-
PANEL_ID
- See Also:
-
-
Method Details
-
getRoleAssignmentCount
-
getRoleInducementsCount
-
createRoleMigrationActivity
public static ActivityDefinitionType createRoleMigrationActivity(@NotNull @NotNull List<BusinessRoleDto> patternDeltas, String roleOid) -
businessRoleMigrationPerform
public static void businessRoleMigrationPerform(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull BusinessRoleApplicationDto businessRoleApplicationDto, @NotNull @NotNull Collection<ObjectDeltaOperation<? extends ObjectType>> executedDeltas, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result, @NotNull @NotNull org.apache.wicket.ajax.AjaxRequestTarget target) -
loadUserWrapperForMarkAction
@Contract(value="_, _, _ -> new", pure=true) @NotNull public static @NotNull org.apache.wicket.model.LoadableDetachableModel<PrismObjectWrapper<UserType>> loadUserWrapperForMarkAction(@NotNull @NotNull String userOid, @NotNull @NotNull PageBase pageBase, @NotNull @NotNull OperationResult result) -
loadRoleAnalysisTempTable
@NotNull public static @NotNull RoleAnalysisTable<MiningUserTypeChunk,MiningRoleTypeChunk> loadRoleAnalysisTempTable(@NotNull @NotNull String id, @NotNull @NotNull PageBase pageBase, @Nullable @Nullable List<DetectedAnomalyResult> detectedAnomalyResult, RoleAnalysisOutlierPartitionType partition, @NotNull @NotNull RoleAnalysisOutlierType outlier, @NotNull @NotNull RoleAnalysisClusterType cluster) -
loadRoleAnalysisTempTable
@NotNull public static @NotNull RoleAnalysisTable<MiningUserTypeChunk,MiningRoleTypeChunk> loadRoleAnalysisTempTable(@NotNull @NotNull String id, @NotNull @NotNull PageBase pageBase, @Nullable @Nullable List<DetectedAnomalyResult> detectedAnomalyResult, String uniqRoleOid, RoleAnalysisOutlierPartitionType partition, @NotNull @NotNull RoleAnalysisOutlierType outlier, @NotNull @NotNull RoleAnalysisClusterType cluster) -
explainOutlier
@NotNull public static @NotNull org.apache.wicket.model.Model<String> explainOutlier(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull RoleAnalysisOutlierType outlierObject, boolean shortExplanation, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) Provides an explanation for the given outlier object.- Parameters:
roleAnalysisService- The role analysis service.outlierObject- The outlier object containing the explanation details.shortExplanation- A flag indicating whether to provide a short explanation.task- The task object.result- The operation result.- Returns:
- A model containing the translated explanation message or a default message if no explanation is available.
-
explainPartition
@NotNull public static @NotNull org.apache.wicket.model.Model<String> explainPartition(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull RoleAnalysisOutlierPartitionType partition, boolean shortExplanation, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) Provides an explanation for the given partition object.- Parameters:
partition- The partition object containing the explanation details.shortExplanation- A flag indicating whether to provide a short explanation.- Returns:
- A model containing the translated explanation message or a default message if no explanation is available.
-
explainAnomaly
@NotNull public static @NotNull org.apache.wicket.model.Model<String> explainAnomaly(@NotNull @NotNull RoleAnalysisService roleAnalysisService, @NotNull @NotNull DetectedAnomalyResult anomalyResult, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) Provides an explanation for the given anomaly result.- Parameters:
anomalyResult- The anomaly result containing the explanation details.- Returns:
- A model containing the translated explanation message or a default message if no explanation is available.
-
explainAnomaly
@NotNull public static @NotNull org.apache.wicket.model.Model<String> explainAnomaly(List<OutlierExplanationResolver.ExplanationResult> explanations) -
getTotalSystemPercentageReduction
public static double getTotalSystemPercentageReduction(int totalReduction, int totalAssignmentRoleToUser) -
createRoleAnalysisTabPanel
@NotNull public static @NotNull RoleAnalysisTabbedPanel<org.apache.wicket.extensions.markup.html.tabs.ITab> createRoleAnalysisTabPanel(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String componentId, @NotNull @NotNull List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs) -
resolveSessionProcessMode
@NotNull public static @NotNull RoleAnalysisProcessModeType resolveSessionProcessMode(@NotNull @NotNull RoleAnalysisSessionType session) -
resolveSessionProcedureType
public static RoleAnalysisProcedureType resolveSessionProcedureType(@NotNull @NotNull RoleAnalysisSessionType session) -
buildSimpleDensityBasedProgressBar
@NotNull public static @NotNull RoleAnalysisInlineProgressBar buildSimpleDensityBasedProgressBar(String id, org.apache.wicket.model.IModel<String> value) -
buildDensityProgressPanel
public static RoleAnalysisBasicProgressBar buildDensityProgressPanel(@NotNull @NotNull String componentId, @NotNull @NotNull Double density, @NotNull @NotNull String title) -
initClusterDensityProgressPanel
public static void initClusterDensityProgressPanel(@NotNull @NotNull org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<SelectableBean<RoleAnalysisClusterType>>> cellItem, @NotNull @NotNull String componentId, @NotNull @NotNull Double density)
-