Package su.onno.process
Record Class ProcessActor
java.lang.Object
java.lang.Record
su.onno.process.ProcessActor
Authenticated actor performing a process operation.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessActor(String username, Set<String> roles) Convenience for applications without an identity catalog; the login is the stable id.ProcessActor(ProcessIdentity identity, Set<String> roles) Creates an instance of aProcessActorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanid()identity()Returns the value of theidentityrecord component.roles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.username()
-
Constructor Details
-
ProcessActor
Creates an instance of aProcessActorrecord class.- Parameters:
identity- the value for theidentityrecord componentroles- the value for therolesrecord component
-
ProcessActor
Convenience for applications without an identity catalog; the login is the stable id.
-
-
Method Details
-
id
-
username
-
displayName
-
hasRole
-
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 withObjects::equals(Object,Object). -
identity
Returns the value of theidentityrecord component.- Returns:
- the value of the
identityrecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-