Record Class FourEyesApproval
java.lang.Object
java.lang.Record
org.j7m.middleware.enterprise.iam.FourEyesApproval
- Record Components:
requestedBy- requester principal idapprovedBy- approving principal idaction- action name
-
Constructor Summary
ConstructorsConstructorDescriptionFourEyesApproval(String requestedBy, String approvedBy, String action) Creates normalized approval metadata. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theapprovedByrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therequestedByrecord component.final StringtoString()Returns a string representation of this record class.booleanvalid()Returns whether the approval has two distinct principals.
-
Constructor Details
-
FourEyesApproval
-
-
Method Details
-
valid
public boolean valid()Returns whether the approval has two distinct principals.- Returns:
- true when valid
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
requestedBy
Returns the value of therequestedByrecord component.- Returns:
- the value of the
requestedByrecord component
-
approvedBy
Returns the value of theapprovedByrecord component.- Returns:
- the value of the
approvedByrecord component
-
action
-