Record Class OpResult.Options

java.lang.Object
java.lang.Record
com.evolveum.midpoint.gui.api.component.result.OpResult.Options
All Implemented Interfaces:
Serializable
Enclosing class:
OpResult

public static record OpResult.Options(boolean hideSuccess, boolean hideInProgress, boolean hideTaskLinks) extends Record implements Serializable
Options for showing OpResult objects.
See Also:
  • Constructor Details

    • Options

      public Options(boolean hideSuccess, boolean hideInProgress, boolean hideTaskLinks)
      Creates an instance of a Options record class.
      Parameters:
      hideSuccess - the value for the hideSuccess record component
      hideInProgress - the value for the hideInProgress record component
      hideTaskLinks - the value for the hideTaskLinks record component
  • Method Details

    • create

      public static OpResult.Options create()
    • withHideSuccess

      public OpResult.Options withHideSuccess(boolean value)
      `SUCCESS` messages are hidden.
    • withHideInProgress

      public OpResult.Options withHideInProgress(boolean value)
      `IN_PROGRESS` messages are hidden.
    • withHideTaskLinks

      public OpResult.Options withHideTaskLinks(boolean value)
      Information about background tasks is not clickable. TODO better name?
    • 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. All components in this record class 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.
    • hideSuccess

      public boolean hideSuccess()
      Returns the value of the hideSuccess record component.
      Returns:
      the value of the hideSuccess record component
    • hideInProgress

      public boolean hideInProgress()
      Returns the value of the hideInProgress record component.
      Returns:
      the value of the hideInProgress record component
    • hideTaskLinks

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