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 Details

    • AssignmentPanelRule

      public AssignmentPanelRule(String panelType, int limit)
    • AssignmentPanelRule

      public AssignmentPanelRule(String panelType, int limit, QName targetType)
    • 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 a AssignmentPanelRule record class.
      Parameters:
      panelType - the value for the panelType record component
      limit - the value for the limit record component
      targetType - the value for the targetType record component
      additionalFilter - the value for the additionalFilter record component
      panelClass - the value for the panelClass record component
      preserveAll - the value for the preserveAll record component
  • Method Details

    • withAdditionalFilter

      public AssignmentPanelRule withAdditionalFilter(ObjectFilter filter)
    • withPanelClass

      public AssignmentPanelRule withPanelClass(Class<? extends org.apache.wicket.markup.html.panel.Panel> panelClass)
    • withPreserveAll

      public AssignmentPanelRule withPreserveAll(boolean preserveAll)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • panelType

      public String panelType()
      Returns the value of the panelType record component.
      Returns:
      the value of the panelType record component
    • limit

      public int limit()
      Returns the value of the limit record component.
      Returns:
      the value of the limit record component
    • targetType

      public QName targetType()
      Returns the value of the targetType record component.
      Returns:
      the value of the targetType record component
    • additionalFilter

      public ObjectFilter additionalFilter()
      Returns the value of the additionalFilter record component.
      Returns:
      the value of the additionalFilter record component
    • panelClass

      public Class<? extends org.apache.wicket.markup.html.panel.Panel> panelClass()
      Returns the value of the panelClass record component.
      Returns:
      the value of the panelClass record component
    • preserveAll

      public boolean preserveAll()
      Returns the value of the preserveAll record component.
      Returns:
      the value of the preserveAll record component