Package com.axelor.auth
Record Class MFASummaryDTO
java.lang.Object
java.lang.Record
com.axelor.auth.MFASummaryDTO
public record MFASummaryDTO(Long id, Boolean enabled, User owner, MFAMethod defaultMethod, Boolean isTotpValidated, Boolean isEmailValidated)
extends Record
Lightweight projection of
MFA for simple usage; unneeded fields are
left out of the projection.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultMethodrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.static MFASummaryDTOfinal inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theisEmailValidatedrecord component.Returns the value of theisTotpValidatedrecord component.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MFASummaryDTO
public MFASummaryDTO(Long id, Boolean enabled, User owner, MFAMethod defaultMethod, Boolean isTotpValidated, Boolean isEmailValidated) Creates an instance of aMFASummaryDTOrecord class.- Parameters:
id- the value for theidrecord componentenabled- the value for theenabledrecord componentowner- the value for theownerrecord componentdefaultMethod- the value for thedefaultMethodrecord componentisTotpValidated- the value for theisTotpValidatedrecord componentisEmailValidated- the value for theisEmailValidatedrecord component
-
-
Method Details
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
isTotpValidated
Returns the value of theisTotpValidatedrecord component.- Returns:
- the value of the
isTotpValidatedrecord component
-
isEmailValidated
Returns the value of theisEmailValidatedrecord component.- Returns:
- the value of the
isEmailValidatedrecord component
-
from
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
defaultMethod
Returns the value of thedefaultMethodrecord component.- Returns:
- the value of the
defaultMethodrecord component
-