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 Summary
ConstructorsConstructorDescriptionOptions(boolean hideSuccess, boolean hideInProgress, boolean hideTaskLinks) Creates an instance of aOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpResult.Optionscreate()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehideInProgressrecord component.booleanReturns the value of thehideSuccessrecord component.booleanReturns the value of thehideTaskLinksrecord component.final StringtoString()Returns a string representation of this record class.withHideInProgress(boolean value) `IN_PROGRESS` messages are hidden.withHideSuccess(boolean value) `SUCCESS` messages are hidden.withHideTaskLinks(boolean value) Information about background tasks is not clickable.
-
Constructor Details
-
Options
public Options(boolean hideSuccess, boolean hideInProgress, boolean hideTaskLinks) Creates an instance of aOptionsrecord class.- Parameters:
hideSuccess- the value for thehideSuccessrecord componenthideInProgress- the value for thehideInProgressrecord componenthideTaskLinks- the value for thehideTaskLinksrecord component
-
-
Method Details
-
create
-
withHideSuccess
`SUCCESS` messages are hidden. -
withHideInProgress
`IN_PROGRESS` messages are hidden. -
withHideTaskLinks
Information about background tasks is not clickable. TODO better name? -
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. All components in this record class are compared with '=='. -
hideSuccess
public boolean hideSuccess()Returns the value of thehideSuccessrecord component.- Returns:
- the value of the
hideSuccessrecord component
-
hideInProgress
public boolean hideInProgress()Returns the value of thehideInProgressrecord component.- Returns:
- the value of the
hideInProgressrecord component
-
hideTaskLinks
public boolean hideTaskLinks()Returns the value of thehideTaskLinksrecord component.- Returns:
- the value of the
hideTaskLinksrecord component
-