Class DashboardWidgetRuntimeInspector
java.lang.Object
com.evolveum.midpoint.gui.impl.page.self.dashboard.DashboardWidgetRuntimeInspector
Derives and applies self-dashboard focus trimming for supported assignment-backed widgets.
The inspector looks at configured dashboard widgets, asks DashboardWidgetTrimRegistry for trim semantics
of supported registered panels, and pre-trims AssignmentHolderType.F_ASSIGNMENT before expensive wrapper creation starts.
Unsupported custom panels are intentionally ignored: the dashboard remains correct, only unoptimized.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCombined trimming plan derived from all supported widgets on the self dashboard. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectQueryCreates the effective assignment query used for trim-time prefiltering.deriveFocusTrimPlan(PageSelfDashboard page, HomePageType homePage) Builds a trim plan for the current home page by inspecting only widgets backed by supported registered panels.static List<AssignmentType>filterAssignments(PageBase pageBase, List<AssignmentType> assignments, AssignmentPanelRule rule) Applies the same assignment query semantics used by supported runtime panels to the in-memory assignment list.static int
-
Method Details
-
deriveFocusTrimPlan
public static DashboardWidgetRuntimeInspector.TrimPlan deriveFocusTrimPlan(PageSelfDashboard page, HomePageType homePage) Builds a trim plan for the current home page by inspecting only widgets backed by supported registered panels. -
getWidgetPreviewLimit
-
createAssignmentQuery
Creates the effective assignment query used for trim-time prefiltering. -
filterAssignments
public static List<AssignmentType> filterAssignments(PageBase pageBase, List<AssignmentType> assignments, AssignmentPanelRule rule) Applies the same assignment query semantics used by supported runtime panels to the in-memory assignment list.
-