Record Class UtenzeApi.IdentitaAutenticata
java.lang.Object
java.lang.Record
it.unina.picus.utenze.api.UtenzeApi.IdentitaAutenticata
- Record Components:
accountId- identificativo dell'account autenticatoruolo- ruolo verificato
- Enclosing interface:
UtenzeApi
public static record UtenzeApi.IdentitaAutenticata(UUID accountId, UtenzeApi.RuoloUtente ruolo)
extends Record
Identità di chi esegue un caso d'uso. Il server la ricava dall'autenticazione o dalla sessione
verificata. Il client può identificare una risorsa, mentre l'attore è stabilito dal server.
-
Constructor Summary
ConstructorsConstructorDescriptionIdentitaAutenticata(UUID accountId, UtenzeApi.RuoloUtente ruolo) Creates an instance of aIdentitaAutenticatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ruolo()Returns the value of theruolorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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). -
accountId
-
ruolo
-