Package com.axelor.workflow.task
Record Class WorkflowTaskQueries.ButtonVisibility
java.lang.Object
java.lang.Record
com.axelor.workflow.task.WorkflowTaskQueries.ButtonVisibility
- Enclosing class:
WorkflowTaskQueries
public static record WorkflowTaskQueries.ButtonVisibility(boolean claim, boolean complete, boolean reject, boolean reassign, boolean cancel, boolean forceComplete)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionButtonVisibility(boolean claim, boolean complete, boolean reject, boolean reassign, boolean cancel, boolean forceComplete) Creates an instance of aButtonVisibilityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()Returns the value of thecancelrecord component.booleanclaim()Returns the value of theclaimrecord component.booleancomplete()Returns the value of thecompleterecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceCompleterecord component.final inthashCode()Returns a hash code value for this object.booleanreassign()Returns the value of thereassignrecord component.booleanreject()Returns the value of therejectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ButtonVisibility
public ButtonVisibility(boolean claim, boolean complete, boolean reject, boolean reassign, boolean cancel, boolean forceComplete) Creates an instance of aButtonVisibilityrecord class.- Parameters:
claim- the value for theclaimrecord componentcomplete- the value for thecompleterecord componentreject- the value for therejectrecord componentreassign- the value for thereassignrecord componentcancel- the value for thecancelrecord componentforceComplete- the value for theforceCompleterecord component
-
-
Method Details
-
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 '=='. -
claim
public boolean claim()Returns the value of theclaimrecord component.- Returns:
- the value of the
claimrecord component
-
complete
public boolean complete()Returns the value of thecompleterecord component.- Returns:
- the value of the
completerecord component
-
reject
public boolean reject()Returns the value of therejectrecord component.- Returns:
- the value of the
rejectrecord component
-
reassign
public boolean reassign()Returns the value of thereassignrecord component.- Returns:
- the value of the
reassignrecord component
-
cancel
public boolean cancel()Returns the value of thecancelrecord component.- Returns:
- the value of the
cancelrecord component
-
forceComplete
public boolean forceComplete()Returns the value of theforceCompleterecord component.- Returns:
- the value of the
forceCompleterecord component
-