Record Class AssignmentPanelRule
java.lang.Object
java.lang.Record
com.evolveum.midpoint.gui.impl.page.self.dashboard.AssignmentPanelRule
public record AssignmentPanelRule(String panelType, int limit, QName targetType, ObjectFilter additionalFilter, Class<? extends org.apache.wicket.markup.html.panel.Panel> panelClass, boolean preserveAll)
extends Record
Immutable trimming rule derived for a supported assignment-backed self-dashboard widget.
The rule is produced while DashboardWidgetRuntimeInspector inspects rendered dashboard widgets and
determines which assignments must be kept on the pre-trimmed focus object before heavy wrapper creation starts.
Rules are contributed only for panels registered in DashboardWidgetTrimRegistry.
-
Constructor Summary
ConstructorsConstructorDescriptionAssignmentPanelRule(String panelType, int limit) AssignmentPanelRule(String panelType, int limit, QName targetType) AssignmentPanelRule(String panelType, int limit, QName targetType, ObjectFilter additionalFilter, Class<? extends org.apache.wicket.markup.html.panel.Panel> panelClass, boolean preserveAll) Creates an instance of aAssignmentPanelRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalFilterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlimit()Returns the value of thelimitrecord component.Class<? extends org.apache.wicket.markup.html.panel.Panel>Returns the value of thepanelClassrecord component.Returns the value of thepanelTyperecord component.booleanReturns the value of thepreserveAllrecord component.Returns the value of thetargetTyperecord component.final StringtoString()Returns a string representation of this record class.withAdditionalFilter(ObjectFilter filter) withPanelClass(Class<? extends org.apache.wicket.markup.html.panel.Panel> panelClass) withPreserveAll(boolean preserveAll)
-
Constructor Details
-
AssignmentPanelRule
-
AssignmentPanelRule
-
AssignmentPanelRule
public AssignmentPanelRule(String panelType, int limit, QName targetType, ObjectFilter additionalFilter, Class<? extends org.apache.wicket.markup.html.panel.Panel> panelClass, boolean preserveAll) Creates an instance of aAssignmentPanelRulerecord class.- Parameters:
panelType- the value for thepanelTyperecord componentlimit- the value for thelimitrecord componenttargetType- the value for thetargetTyperecord componentadditionalFilter- the value for theadditionalFilterrecord componentpanelClass- the value for thepanelClassrecord componentpreserveAll- the value for thepreserveAllrecord component
-
-
Method Details
-
withAdditionalFilter
-
withPanelClass
public AssignmentPanelRule withPanelClass(Class<? extends org.apache.wicket.markup.html.panel.Panel> panelClass) -
withPreserveAll
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
panelType
Returns the value of thepanelTyperecord component.- Returns:
- the value of the
panelTyperecord component
-
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
targetType
Returns the value of thetargetTyperecord component.- Returns:
- the value of the
targetTyperecord component
-
additionalFilter
Returns the value of theadditionalFilterrecord component.- Returns:
- the value of the
additionalFilterrecord component
-
panelClass
Returns the value of thepanelClassrecord component.- Returns:
- the value of the
panelClassrecord component
-
preserveAll
public boolean preserveAll()Returns the value of thepreserveAllrecord component.- Returns:
- the value of the
preserveAllrecord component
-